- fixed centering on message event

- fixed unit lock when mage unit hasn't enough mana
This commit is contained in:
cade 2000-06-29 22:13:10 +00:00
parent 2cfb518c22
commit 8af3ed05b0
2 changed files with 2 additions and 1 deletions

View file

@ -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--;
}

View file

@ -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;