Author: plouj
Date: 2007-11-06 18:42:40 +0100 (Tue, 06 Nov 2007)
New Revision: 3496
Modified:
trunk/pingus/src/game_session.cpp
Log:
added comments clarifying what the code seems to be doing
Modified: trunk/pingus/src/game_session.cpp
===================================================================
--- trunk/pingus/src/game_session.cpp 2007-11-05 12:15:34 UTC (rev 3495)
+++ trunk/pingus/src/game_session.cpp 2007-11-06 17:42:40 UTC (rev 3496)
@@ -130,11 +130,15 @@
return;
}
+ // how long did the previous frame processing take (ignoring idle delay)
int time_passed = int(delta.get_time() * 1000) + left_over_time;
+ // how long we want each world update to take
int update_time = game_speed;
left_over_time = 0;
+ // update the world (and the objects in it) in constant steps to account
+ // for the time the previous frame took
{
int i;
for (i = 0;
_______________________________________________
pingus-cvs mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/pingus-cvs