]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16_timer.c
hmmm
[16.git] / src / lib / 16_timer.c
index c8416c79f822c08735e52cd15ade0026e4b7677e..6d00448fd698a68c16198154de86cca10ee2c59f 100755 (executable)
@@ -29,7 +29,7 @@ clock_t start_timer(global_game_variables_t *gv)
        gv->kurokku.clock_start = *clockw;\r
        gv->kurokku.clock = clockw;\r
        gv->kurokku.frames_per_second = 60;\r
-       gv->pee = _nmalloc(sizeof(byte)*2);\r
+       gv->pee = _nmalloc(sizeof(byte)*16);\r
        //turn this off if XT\r
        switch(detectcpu())\r
        {\r
@@ -73,7 +73,7 @@ void shinkutxt(global_game_variables_t *gv)
        if(elapsed_timer(gv) >= (1.0 / gv->kurokku.frames_per_second))\r
        {\r
                //t=(((*(gv->clock))-gv->clock_start) /18.2);\r
-               sprintf(gv->pee, "%f fps", (double)gv->kurokku.tiku/ticktock(gv));\r
+               sprintf(gv->pee, "%.0f fps", (double)gv->kurokku.tiku/ticktock(gv));\r
                fprintf(stderr, "%s\n", gv->pee);\r
                //(gv->clock_start)=*(gv->clock);\r
                gv->kurokku.tiku=0;\r