summaryrefslogtreecommitdiff
path: root/src/base/shot.c
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2008-12-11 19:39:49 +0100
committerTomas Chvatal <scarabeus@gentoo.org>2008-12-11 19:39:49 +0100
commita83321436c8d40210bbbd0a44fe1290ed71638af (patch)
tree02004c36772311bdc1ba6b9a2508b20691cca5c6 /src/base/shot.c
parent3ba6105170ecac2fb124d9eb7e81ba72dd4700b8 (diff)
Revert "First pass for renaming screen/widget."
This reverts commit 3ba6105170ecac2fb124d9eb7e81ba72dd4700b8.
Diffstat (limited to 'src/base/shot.c')
-rw-r--r--src/base/shot.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/base/shot.c b/src/base/shot.c
index 759f00c..977ccb4 100644
--- a/src/base/shot.c
+++ b/src/base/shot.c
@@ -14,7 +14,7 @@
#ifndef PUBLIC_SERVER
# include "image.h"
# include "layer.h"
-# include "world.h"
+# include "screen_world.h"
#endif
#ifdef PUBLIC_SERVER
@@ -303,7 +303,7 @@ static void action_check(space_t * space, shot_t * shot, client_t * client)
void checkShotIsInTuxScreen(arena_t * arena)
{
- int x, y;
+ int screen_x, screen_y;
tux_t *thisTux;
client_t *thisClient;
list_t *listClient;
@@ -324,11 +324,11 @@ void checkShotIsInTuxScreen(arena_t * arena)
continue;
}
- getCenterScreen(&x, &y, thisTux->x, thisTux->y,
+ getCenterScreen(&screen_x, &screen_y, thisTux->x, thisTux->y,
WINDOW_SIZE_X, WINDOW_SIZE_Y);
actionSpaceFromLocation(arena->spaceShot, action_check,
- thisClient, x, y,
+ thisClient, screen_x, screen_y,
WINDOW_SIZE_X, WINDOW_SIZE_Y);
while (thisClient->listSeesShot->count > 100) {