From 23c81ceb32b140b8a59e9c5c5b6cfea7ffe8d30c Mon Sep 17 00:00:00 2001 From: "Valeriano A.R" Date: Wed, 7 Mar 2012 20:00:00 +0100 Subject: [PATCH] (20120307) 20:00 --- Draw.c | 11 +++++++++- NOTES.txt | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ game.save | Bin 8 -> 8 bytes 3 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 NOTES.txt diff --git a/Draw.c b/Draw.c index 92d2b14..2f121ce 100644 --- a/Draw.c +++ b/Draw.c @@ -34,6 +34,7 @@ SDL_Surface *_screen=NULL; int _width; int _height; long long _t_frame=17000; +long long min_t_frame=16000; ///////////////////////////// // Draw_Init @@ -173,6 +174,8 @@ void Draw_Loop(int (*proc)(),void (*draw)()){ time2=Time_GetTime(); t_frame+=time2-time; time=time2; + + // FIX: Limit if(t_frame>50000){ t_frame=50000; } @@ -191,9 +194,15 @@ void Draw_Loop(int (*proc)(),void (*draw)()){ } // Draw + time2=Time_GetTime(); draw(); + time2=Time_GetTime()-time2; + if(time2