summaryrefslogtreecommitdiff
path: root/src/screen/screen_world.c
diff options
context:
space:
mode:
authororoborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-07-04 19:16:27 +0000
committeroroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-07-04 19:16:27 +0000
commit247baf298bf2425fd91297ea18d716e714cb3dc5 (patch)
treecfe9277e1d8086d2b38b13f2caf75dea4b73c41e /src/screen/screen_world.c
parent157e2a29828f2ddbdf32e1c9e565b13e5e732e34 (diff)
- podpora bigAren :-)
- radar git-svn-id: http://opensvn.csie.org/tuxanci_ng@90 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/screen/screen_world.c')
-rw-r--r--src/screen/screen_world.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/screen/screen_world.c b/src/screen/screen_world.c
index 78628b2..380fd43 100644
--- a/src/screen/screen_world.c
+++ b/src/screen/screen_world.c
@@ -24,6 +24,7 @@
#include "client/term.h"
#include "client/font.h"
#include "client/panel.h"
+#include "client/radar.h"
#ifndef NO_SOUND
#include "audio/music.h"
@@ -196,6 +197,11 @@ void drawWorld()
{
drawArena(arena);
drawPanel(arena->spaceTux->list);
+
+ if( arena->w > WINDOW_SIZE_X || arena->h > WINDOW_SIZE_Y )
+ {
+ drawRadar(arena);
+ }
}
drawTerm();
@@ -481,6 +487,11 @@ void eventWorld()
eventArena(arena);
//eventModule();
+ addToRadar(tuxWithControlRightKeyboard->id,
+ tuxWithControlRightKeyboard->x,
+ tuxWithControlRightKeyboard->y,
+ RADAR_TYPE_YOU);
+
eventTerm();
eventEnd();
eventEsc();
@@ -495,6 +506,7 @@ void startWorld()
lastServerLag = LAG_SERVER_UNKNOWN;
initListID();
+ initRadar();
initModule();
setGameType();
initTerm();
@@ -556,6 +568,8 @@ void stoptWorld()
destroyArena(arena);
}
+ quitRadar();
+
#ifndef NO_SOUND
stopMusic();
#endif