2025-07-20 00:49 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0000554Spring engineGeneralpublic2007-06-25 10:12
Reporterrattle 
Assigned Totvo 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusresolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0000554: patch revised: get/set STANDINGFIREORDERS, STANDINGMOVEORDERS
DescriptionSorry for the inconvenience, the other patch (probably) doesn't work.
This one now issues an order to the unit now rather than overwriting unit->moveState/fireState and it works for me.
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files
  • patch file icon COB_GetSetFireMoveState2.patch (940 bytes) 2007-06-24 23:27 -
    Index: CobInstance.cpp
    ===================================================================
    --- CobInstance.cpp	(revision 3823)
    +++ CobInstance.cpp	(working copy)
    @@ -32,6 +32,8 @@
     #include "Sim/Weapons/WeaponDefHandler.h"
     #include "mmgr.h"
     #include "Sim/Misc/RadarHandler.h"
    +#include "Sim/Units/CommandAI/CommandAI.h"
    +//#include "Game/Command.h"
     
     #endif
     
    @@ -1110,10 +1112,20 @@
     			unit->Activate();
     		break;
     	case STANDINGMOVEORDERS:
    -		if (param >= 0 && param <= 2) unit->moveState = param;
    +		if (param >= 0 && param <= 2) {
    +			Command c;
    +			c.id = CMD_MOVE_STATE;
    +			c.params.push_back(param);
    +			unit->commandAI->GiveCommand(c);
    +		}
     		break;
     	case STANDINGFIREORDERS:
    -		if (param >= 0 && param <= 2) unit->fireState = param;
    +		if (param >= 0 && param <= 2) {
    +			Command c;
    +			c.id = CMD_FIRE_STATE;
    +			c.params.push_back(param);
    +			unit->commandAI->GiveCommand(c);
    +		}
     		break;
     	case HEALTH:
     		break;
    
    patch file icon COB_GetSetFireMoveState2.patch (940 bytes) 2007-06-24 23:27 +

-Relationships
+Relationships

-Notes

~0000980

tvo (reporter)

Committed, r3847
+Notes

-Issue History
Date Modified Username Field Change
2007-06-24 23:27 rattle New Issue
2007-06-24 23:27 rattle File Added: COB_GetSetFireMoveState2.patch
2007-06-25 10:12 tvo Note Added: 0000980
2007-06-25 10:12 tvo Status new => assigned
2007-06-25 10:12 tvo Assigned To => tvo
2007-06-25 10:12 tvo Status assigned => resolved
2007-06-25 10:12 tvo Resolution open => fixed
+Issue History