From beb24f3d10b9b67e59a2d2b4e2cb1e20dcea6aa7 Mon Sep 17 00:00:00 2001 From: Giel van Schijndel Date: Fri, 28 Sep 2007 15:11:58 +0000 Subject: [PATCH] * Replace macro function CLIP_WORLD_OFFMAP with static inline function clip_world_offmap * Add a Doxygen header to this function git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2487 4a71c877-e1ca-e34f-864e-861f7616d084 --- src/action.c | 4 ++-- src/map.h | 22 +++++++++++++++------- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/src/action.c b/src/action.c index 1d5a7032c..38838b5f9 100644 --- a/src/action.c +++ b/src/action.c @@ -807,7 +807,7 @@ static void actionUpdateTransporter( DROID *psDroid ) } - // check that the target has not become on the same side as psDroid, + // check that the target has not become on the same side as psDroid, // eg through Electronic Warfare if (psDroid->psActionTarget[0] != NULL && psDroid->player == psDroid->psActionTarget[0]->player) @@ -908,7 +908,7 @@ static void actionCalcPullBackPoint(BASE_OBJECT *psObj, BASE_OBJECT *psTarget, S *py = (SDWORD)psObj->y + ydiff * PULL_BACK_DIST; // make sure coordinates stay inside of the map - CLIP_WORLD_OFFMAP(*px, *py); + clip_world_offmap(px, py); } diff --git a/src/map.h b/src/map.h index ad6631e53..9c33a7d72 100644 --- a/src/map.h +++ b/src/map.h @@ -163,13 +163,6 @@ extern MAPTILE *psMapTiles; /* The number of units accross a tile */ #define TILE_UNITS (1<