Corrected debuging messages.
This commit is contained in:
parent
393879f803
commit
96544ffa66
3 changed files with 8 additions and 9 deletions
|
@ -37,7 +37,7 @@
|
|||
** The unit patrols between two points.
|
||||
** Any enemy unit in reaction range is attacked.
|
||||
** FIXME:
|
||||
** Should do some tries to reach the end-points.
|
||||
** Should do some tries to reach the end-points.
|
||||
** Should support patrol between more points!
|
||||
** Patrol between units.
|
||||
**
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
//@{
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
-- Include
|
||||
-- Includes
|
||||
----------------------------------------------------------------------------*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -149,7 +149,7 @@ global int HandleActionRepair(Unit* unit)
|
|||
Unit* goal;
|
||||
int err;
|
||||
|
||||
DebugLevel3("Repair %d\n",unit-Units);
|
||||
DebugLevel3("Repair %Zd\n",UnitNumber(unit));
|
||||
|
||||
switch( unit->SubAction ) {
|
||||
//
|
||||
|
|
|
@ -9,11 +9,10 @@
|
|||
// FreeCraft - A free fantasy real time strategy game engine
|
||||
//
|
||||
/**@name action_research.c - The research action. */
|
||||
/*
|
||||
** (c) Copyright 1998,2000 by Lutz Sammer
|
||||
**
|
||||
** $Id$
|
||||
*/
|
||||
//
|
||||
// (c) Copyright 1998,2000,2001 by Lutz Sammer
|
||||
//
|
||||
// $Id$
|
||||
|
||||
//@{
|
||||
|
||||
|
@ -39,7 +38,7 @@ global void HandleActionResearch(Unit* unit)
|
|||
{
|
||||
Upgrade* upgrade;
|
||||
|
||||
DebugLevel3("Research %d\n",unit);
|
||||
DebugLevel3("Research %Zd\n",UnitNumber(unit));
|
||||
upgrade=unit->Command.Data.Research.What;
|
||||
unit->Command.Data.Research.Ticks+=SpeedResearch;
|
||||
if( unit->Command.Data.Research.Ticks>=upgrade->Costs[TimeCost] ) {
|
||||
|
|
Loading…
Add table
Reference in a new issue