View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0004038||The Dark Mod||AI||public||15.01.2015 03:21||24.11.2017 16:42|
|Priority||normal||Severity||normal||Reproducibility||have not tried|
|Product Version||TDM 2.03|
|Summary||0004038: Is there a problem with MoveToPosition()?|
|Description||When an AI is told to go to a new location using MoveToPosition(), the first thing that method does is to see if the AI is already there.|
So there are two states that are returning the same value to the caller (true).
State 1: The AI is already at the location and doesn't need to move.
State 2: The AI is not already at the location and is capable of moving there, so he will start moving there.
There's a State3 where the AI is not already at the location but the location is unreachable. This returns false to the caller, which isn't a problem.
This problem already turned up in the door handling code.
MoveToPosition() should return three integer values (1,2,3), not two boolean values (true, false).
Investigate what this means to code using MoveToPosition().
|Tags||No tags attached.|
|15.01.2015 03:21||grayman||New Issue|
|15.01.2015 03:21||grayman||Status||new => assigned|
|15.01.2015 03:21||grayman||Assigned To||=> grayman|
|12.10.2015 12:28||grayman||Target Version||TDM 2.04 =>|
|24.11.2017 16:31||grayman||Assigned To||grayman =>|
|24.11.2017 16:42||grayman||Status||assigned => new|