Fixed bug when using a cheat while chopping
This commit is contained in:
parent
0fb75bfa31
commit
b17b94b954
1 changed files with 5 additions and 2 deletions
|
@ -1025,7 +1025,9 @@ local void DrawDecoration(const Unit* unit,const UnitType* type,int x,int y)
|
|||
//
|
||||
} else if( unit->Orders[0].Action==UnitActionHarvest
|
||||
&& unit->SubAction==64 ) {
|
||||
DrawManaBar(x,y,type,CHOP_FOR_WOOD,CHOP_FOR_WOOD-unit->Value);
|
||||
DrawManaBar(x,y,type,CHOP_FOR_WOOD,
|
||||
unit->Value>CHOP_FOR_WOOD?
|
||||
0:CHOP_FOR_WOOD-unit->Value);
|
||||
|
||||
//
|
||||
// Building research new technologie.
|
||||
|
@ -1099,7 +1101,8 @@ local void DrawDecoration(const Unit* unit,const UnitType* type,int x,int y)
|
|||
} else if( unit->Orders[0].Action==UnitActionHarvest
|
||||
&& unit->SubAction==64 ) {
|
||||
DrawManaSprite(x,y,type,CHOP_FOR_WOOD,
|
||||
CHOP_FOR_WOOD-unit->Value);
|
||||
unit->Value>CHOP_FOR_WOOD?
|
||||
0:CHOP_FOR_WOOD-unit->Value);
|
||||
|
||||
//
|
||||
// Building research new technologie.
|
||||
|
|
Loading…
Reference in a new issue