2024-04-24 19:29 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0000535Spring engineGeneralpublic2007-05-22 00:40
Reporterrattle 
Assigned Totvo 
PrioritynormalSeverityfeatureReproducibilityalways
StatusresolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0000535: [patch] set/get STANDINGFIREORDER and STANDINGMOVEORDER
Descriptionhttp://spring.clan-sy.com/phpbb/viewtopic.php?t=10403
Untested, can't compile at the moment.
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files
  • patch file icon COB_GetSetFireMoveState.patch (705 bytes) 2007-05-14 23:39 -
    Index: CobInstance.cpp
    ===================================================================
    --- CobInstance.cpp	(revision 3747)
    +++ CobInstance.cpp	(working copy)
    @@ -902,8 +902,10 @@
     			return 0;
     		break;
     	case STANDINGMOVEORDERS:
    +		return unit->moveState;
     		break;
     	case STANDINGFIREORDERS:
    +		return unit->fireState;
     		break;
     	case HEALTH:
     		return (int) ((unit->health/unit->maxHealth)*100.0f);
    @@ -1045,9 +1047,10 @@
     			unit->Activate();
     		break;
     	case STANDINGMOVEORDERS:
    +		if (param >= 0 && param <= 2) unit->moveState = param;
     		break;
     	case STANDINGFIREORDERS:
    -		break;
    +		if (param >= 0 && param <= 2) unit->fireState = param;
     	case HEALTH:
     		break;
     	case INBUILDSTANCE:
    
    patch file icon COB_GetSetFireMoveState.patch (705 bytes) 2007-05-14 23:39 +
  • patch file icon COB_GetSetFireMoveState_fixed.patch (683 bytes) 2007-05-14 23:43 -
    Index: CobInstance.cpp
    ===================================================================
    --- CobInstance.cpp	(revision 3747)
    +++ CobInstance.cpp	(working copy)
    @@ -902,8 +902,10 @@
     			return 0;
     		break;
     	case STANDINGMOVEORDERS:
    +		return unit->moveState;
     		break;
     	case STANDINGFIREORDERS:
    +		return unit->fireState;
     		break;
     	case HEALTH:
     		return (int) ((unit->health/unit->maxHealth)*100.0f);
    @@ -1045,8 +1047,10 @@
     			unit->Activate();
     		break;
     	case STANDINGMOVEORDERS:
    +		if (param >= 0 && param <= 2) unit->moveState = param;
     		break;
     	case STANDINGFIREORDERS:
    +		if (param >= 0 && param <= 2) unit->fireState = param;
     		break;
     	case HEALTH:
     		break;
    
    patch file icon COB_GetSetFireMoveState_fixed.patch (683 bytes) 2007-05-14 23:43 +

-Relationships
+Relationships

-Notes

~0000909

rattle (reporter)

Ignore the first one, forgot a break :(

~0000911

tvo (reporter)

seems minor enough, committed, thanks!
+Notes

-Issue History
Date Modified Username Field Change
2007-05-14 23:39 rattle New Issue
2007-05-14 23:39 rattle File Added: COB_GetSetFireMoveState.patch
2007-05-14 23:43 rattle File Added: COB_GetSetFireMoveState_fixed.patch
2007-05-14 23:44 rattle Note Added: 0000909
2007-05-22 00:39 tvo Note Added: 0000911
2007-05-22 00:40 tvo Status new => assigned
2007-05-22 00:40 tvo Assigned To => tvo
2007-05-22 00:40 tvo Status assigned => resolved
2007-05-22 00:40 tvo Resolution open => fixed
+Issue History