From e67f204604771646dc240eb5a3fa52062bff4af1 Mon Sep 17 00:00:00 2001 From: johns <> Date: Wed, 14 Jun 2000 07:32:01 +0000 Subject: [PATCH] Message for out of resources added from Luke --- src/action/action_repair.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/action/action_repair.cpp b/src/action/action_repair.cpp index 3d13070fe..c1a0cef13 100644 --- a/src/action/action_repair.cpp +++ b/src/action/action_repair.cpp @@ -50,7 +50,7 @@ local void DoActionRepairGeneric(Unit* unit,const Animation* repair) flags=UnitShowAnimation(unit,repair); - if( (flags&AnimationSound) ) { + if( (flags&AnimationSound) ) { PlayUnitSound(unit,VoiceAttacking); //FIXME: should be something else... } } @@ -82,7 +82,7 @@ local void RepairUnit(Unit* unit,Unit* goal) // Calculate the repair costs. // DebugCheck( !goal->Stats->HitPoints ); - + for( i=1; i<MaxCosts; ++i ) { costs[i]=((goal->Stats->Costs[i]*hp)/goal->Stats->HitPoints)/DIVISOR; @@ -98,7 +98,7 @@ local void RepairUnit(Unit* unit,Unit* goal) // for( i=1; i<MaxCosts; ++i ) { if( player->Resources[i]<costs[i] ) { - // FIXME: we should show a message, we need resources! + SetMessage("We need resources!"); // FIXME: perhaps we should not animate if no resources are available. return; } @@ -132,7 +132,7 @@ local int AnimateActionRepair(Unit* unit) { if( unit->Type->Animations ) { DebugCheck( !unit->Type->Animations->Attack ); - // FIXME: An seperate repair animation would be nice? + // FIXME: A seperate repair animation would be nice? DoActionRepairGeneric(unit,unit->Type->Animations->Attack); } @@ -157,7 +157,7 @@ global int HandleActionRepair(Unit* unit) // case 0: // FIXME: RESET FIRST!! Why? (Johns) - err=HandleActionMove(unit); + err=HandleActionMove(unit); if( unit->Reset ) { // // No goal: if meeting enemy attack it.