From b72fffb0a78d01125d2c9331bd40b13e9cdc0a0d Mon Sep 17 00:00:00 2001 From: johns <> Date: Mon, 19 Feb 2001 17:32:37 +0000 Subject: [PATCH] Changed @returns to correct doc++/doxygen keyword @return. Corrected debug messages. --- src/stratagus/oldmissile.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/stratagus/oldmissile.cpp b/src/stratagus/oldmissile.cpp index 7173033d3..e647acffd 100644 --- a/src/stratagus/oldmissile.cpp +++ b/src/stratagus/oldmissile.cpp @@ -506,7 +506,7 @@ global void LoadMissileSprites(void) ** ** @param ident Identifier. ** -** @returns Missile type pointer. +** @return Missile type pointer. */ global MissileType* MissileTypeByIdent(const char* ident) { @@ -531,14 +531,14 @@ global MissileType* MissileTypeByIdent(const char* ident) ** @param dx Missile x destination point in pixel. ** @param dy Missile y destination point in pixel. ** -** @returns created missile. +** @return created missile. */ global Missile* MakeMissile(MissileType* type,int sx,int sy,int dx,int dy) { Missile* missile; DebugLevel3Fn("type %Zd(%s) at %d,%d to %d,%d\n" - ,type-MissileTypes,type->Name,sx,sy,dx,dy); + ,type-MissileTypes,type->Ident,sx,sy,dx,dy); // // Find free slot, FIXME: see MakeUnit for better code @@ -595,7 +595,7 @@ found: ** @param goal_stats Goal attributes. ** @param bloodlust If attacker has bloodlust ** -** @returns damage produces on goal. +** @return damage produces on goal. */ local int CalculateDamageStats( const UnitStats* attacker_stats, const UnitStats* goal_stats, @@ -631,7 +631,7 @@ local int CalculateDamageStats( const UnitStats* attacker_stats, ** @param attack_stats Attacker attributes. ** @param goal Goal unit. ** @param bloodlust If attacker has bloodlust -** @returns damage produces on goal. +** @return damage produces on goal. */ local int CalculateDamage( const UnitStats* attacker_stats, const Unit* goal, @@ -696,13 +696,14 @@ global void FireMissile(Unit* unit) if( !--goal->Refs ) { ReleaseUnit(goal); } +#if 0 // FIXME: should I clear this here? #ifdef NEW_ORDERS goal=unit->Orders[0].Goal=NULL; #else unit->Command.Data.Move.Goal=NULL; #endif - +#endif return; } if( goal->Removed ) {