Bug (and Fix) in GetScheduleDuration / GetTimeSinceStart Function
by Giuseppe Bertone · in Torque Game Builder · 03/01/2010 (12:46 pm) · 0 replies
I found this bug alert (and fix) into the TGE area. It was posted by Cinder Games two years ago but it's still present into TGB 1.7.4 also.
I posted it here so it should be easier to see this fix implemented into TGB 1.7.5 :-)
Original post is here
Quoted one follows
I posted it here so it should be easier to see this fix implemented into TGB 1.7.5 :-)
Original post is here
Quoted one follows
Quote:
GetScheduleDuration and GetTimeSinceStart schedule functions no longer work!!
These are two simple functions i wrote in 2005 which were added to the SDK.
Somewhere along the lines, my extra code added to simmanager.cc disappeared
in simManager.cc around line 79 in PostEvent
event->time = time; event->startTime=gCurrentTime; //Ramen Hack event->destObject = destObject;
Quote:
This one line needs to be added in giving start time a real number to use. Without it, starttime is never given a value, and you get an erroneous value.
I've added this back into my code and confirmed it works.
About the author