Mercurial > mm7
comparison Game.cpp @ 2122:5b654c03a11e
for snow in house
author | Ritor1 |
---|---|
date | Wed, 25 Dec 2013 17:42:19 +0600 |
parents | f6e59446c133 |
children | de5cdcb03fda |
comparison
equal
deleted
inserted
replaced
2121:f6e59446c133 | 2122:5b654c03a11e |
---|---|
203 static bool render_framerate = false; | 203 static bool render_framerate = false; |
204 static float framerate = 0.0f; | 204 static float framerate = 0.0f; |
205 static uint frames_this_second = 0; | 205 static uint frames_this_second = 0; |
206 static uint last_frame_time = GetTickCount(); | 206 static uint last_frame_time = GetTickCount(); |
207 static uint framerate_time_elapsed = 0; | 207 static uint framerate_time_elapsed = 0; |
208 pWeather->Draw();//Ritor1: my include | 208 if ( pCurrentScreen == SCREEN_GAME ) |
209 pWeather->Draw();//Ritor1: my include | |
209 | 210 |
210 uint frame_dt = GetTickCount() - last_frame_time; | 211 uint frame_dt = GetTickCount() - last_frame_time; |
211 last_frame_time = GetTickCount(); | 212 last_frame_time = GetTickCount(); |
212 | 213 |
213 framerate_time_elapsed += frame_dt; | 214 framerate_time_elapsed += frame_dt; |