Game Development Community

Fixed! - CommandState not properly updated

by Novack · in RTS Starter Kit · 10/01/2007 (3:27 pm) · 2 replies

Priority: Low
Category: Improper functionality in all configurations
Reproducable: Yes

Summary: The CommandState (move, attack, none, etc.) is not not properly updated on several places.

Notes: Soon this fix will be included in the incomming 2nd revision of the port to TGE 1.5.2 patch.

Fix: In starter.RTS\client\scripts\inputHandler.cs add this line:

%this.setCommandState("None");

In each one of the next places:

1) In GuiRTSTSCtrl::onMouseDownUnit, right above "case "None":" (around line 60)

2) In GuiRTSTSCtrl::onMouseDownBuilding, right above "case "Move":" (around line 98)

3) In the same function GuiRTSTSCtrl::onMouseDownBuilding, right above "case "None":" (around line 108)

#1
10/02/2007 (12:41 pm)
I'm not sure where to place these fixes. You say right above case "None": (for instance) but does that mean after the closing curly bracket or what?

}
[b]// here?[/b]
case "None":
#2
10/02/2007 (3:13 pm)
Yeap, exactly there. Just before the next case, and after the last line of the previous one. The bracket you mention is from an "If" statement, the new line goes outside that If block.