From 96544ffa66713964d24c8526d0d619c897c05a80 Mon Sep 17 00:00:00 2001 From: johns <> Date: Mon, 19 Feb 2001 17:27:01 +0000 Subject: [PATCH] Corrected debuging messages. --- src/action/action_patrol.cpp | 2 +- src/action/action_repair.cpp | 4 ++-- src/action/action_research.cpp | 11 +++++------ 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/action/action_patrol.cpp b/src/action/action_patrol.cpp index 5b4429779..cf7c2304f 100644 --- a/src/action/action_patrol.cpp +++ b/src/action/action_patrol.cpp @@ -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. ** diff --git a/src/action/action_repair.cpp b/src/action/action_repair.cpp index b485542bf..376e282ec 100644 --- a/src/action/action_repair.cpp +++ b/src/action/action_repair.cpp @@ -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 ) { // diff --git a/src/action/action_research.cpp b/src/action/action_research.cpp index f2e184e31..20ead2ae1 100644 --- a/src/action/action_research.cpp +++ b/src/action/action_research.cpp @@ -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] ) {