Game Development Community

Yet another TelnetDebugger bug fix

by Tom Spilman · in Torque Game Engine · 07/28/2006 (12:45 am) · 1 replies

Ok... this is a really stupid bug on my part and i have no clue how i haven't noticed it till now. If you passed anything other than just a simple variable for the debugger to evaluate you would get junk back from the string stack instead of your result.

In TelnetDebugger::evaluateExpression()...

// Gotta have a statement to execute.
   char buffer[MaxCommandSize];
   dSprintf(buffer, MaxCommandSize, "$Debug::result = %s;", evalBuffer);

... to...

// Gotta have a statement to execute.
   char buffer[MaxCommandSize];
   dSprintf(buffer, MaxCommandSize, "return %s;", evalBuffer);

Sorry guys... at least i caught it. :/

About the author

Tom is a programmer and co-owner of Sickhead Games, LLC.


#1
08/05/2006 (3:59 pm)
Tom,
Fixed and in 1.1.1, thanks!

Cheers,
-Justin