f32 dtime_part;
if(dtime_downcount > dtime_max_increment)
+ {
dtime_part = dtime_max_increment;
+ dtime_downcount -= dtime_part;
+ }
else
+ {
dtime_part = dtime_downcount;
- dtime_downcount -= dtime_part;
+ /*
+ Setting this to 0 (no -=dtime_part) disables an infinite loop
+ when dtime_part is so small that dtime_downcount -= dtime_part
+ does nothing
+ */
+ dtime_downcount = 0;
+ }
/*
Handle local player
\r
=== Next\r
* Continue making the scripting system:\r
- * Rip up everything unnecessary from the lua build system\r
* Make updateNodeMesh for a less verbose mesh update on add/removenode\r
* Switch to using a safe way for the self and env pointers\r
* Make some global environment hooks, like node placed and general\r