- fixed centering on message event
- fixed unit lock when mage unit hasn't enough mana
This commit is contained in:
parent
2cfb518c22
commit
8af3ed05b0
2 changed files with 2 additions and 1 deletions
src
|
@ -153,7 +153,7 @@ global void HandleActionSpellCast(Unit* unit)
|
|||
if ( !repeat ) {
|
||||
unit->Command.Action=UnitActionStill;
|
||||
unit->SubAction=0;
|
||||
unit->State=0;
|
||||
unit->Wait = 1;
|
||||
if ( unit->Command.Data.Move.Goal )
|
||||
unit->Command.Data.Move.Goal->Refs--;
|
||||
}
|
||||
|
|
|
@ -604,6 +604,7 @@ global void SetMessage2( int x, int y, char* fmt, ... )
|
|||
strcpy( MessagesEvent[ MessagesEventCount ], temp );
|
||||
MessagesEventX[ MessagesEventCount ] = x;
|
||||
MessagesEventY[ MessagesEventCount ] = y;
|
||||
MessagesEventIndex = MessagesEventCount;
|
||||
MessagesEventCount++;
|
||||
|
||||
MustRedraw|=RedrawMessage|RedrawMap;
|
||||
|
|
Loading…
Add table
Reference in a new issue