summaryrefslogtreecommitdiff
path: root/src/base/item.c
diff options
context:
space:
mode:
authororoborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-07-18 19:19:10 +0000
committeroroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-07-18 19:19:10 +0000
commit8b93dd8dac51e28bb25ad341f594d21a955c3adb (patch)
treee04e9ea1d2d9b57c77617614283fc8756c96d53c /src/base/item.c
parenta5a03e684b5ed3e8781ce30e5ffd4f73b59c3e97 (diff)
- bezpecnejsie prepiannie screenov ( uz sa to nedeje v event() daneho screenu aj ked to on vyvolal )
- do laveho horneho rohu s nevypisuju blbiny - moduly pouzivaju funkcie actionSpace a actionSpaceFromLocation - dane funkcie sa pouzivaju aj pri vykreslovani objektov - btw. je jedno kolko zeru tuxanci top, na kerneli-2.6.25.* to zralo X a na kerneli 2.6.26 to zere 2*X git-svn-id: http://opensvn.csie.org/tuxanci_ng@159 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/base/item.c')
-rw-r--r--src/base/item.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/base/item.c b/src/base/item.c
index c341754..2cbae3f 100644
--- a/src/base/item.c
+++ b/src/base/item.c
@@ -16,7 +16,6 @@
#include "interface.h"
#include "image.h"
#include "layer.h"
-#include "term.h"
#include "screen_world.h"
#include "screen_setting.h"
@@ -29,7 +28,6 @@
#ifdef PUBLIC_SERVER
#include "publicServer.h"
-#include "publicServer.h"
#endif
#ifndef PUBLIC_SERVER
@@ -166,9 +164,6 @@ void replaceItemID(item_t *item, int id)
void addNewItem(space_t *spaceItem, int author_id)
{
-#ifndef PUBLIC_SERVER
- char msg[STR_SIZE];
-#endif
arena_t *arena;
item_t *item;
int new_x, new_y;
@@ -237,12 +232,6 @@ void addNewItem(space_t *spaceItem, int author_id)
{
proto_send_additem_server(PROTO_SEND_ALL, NULL, item);
}
-
-#ifndef PUBLIC_SERVER
- sprintf(msg, "in arena is new item\n");
- appendTextInTerm(msg);
-#endif
-
}
#ifndef PUBLIC_SERVER
@@ -449,21 +438,13 @@ static void eventTuxIsDeadWithItem(tux_t *tux, item_t *item)
static void tuxGiveBonus(tux_t *tux, item_t *item)
{
-#ifndef PUBLIC_SERVER
- char msg[STR_SIZE];
#ifndef NO_SOUND
playSound("item_bonus", SOUND_GROUP_BASE);
#endif
-#endif
tux->bonus = item->type;
tux->bonus_time = TUX_MAX_BONUS;
-#ifndef PUBLIC_SERVER
- sprintf(msg, "tux with id %d bonus enabled\n", tux->id);
- appendTextInTerm(msg);
-#endif
-
if( getNetTypeGame() == NET_GAME_TYPE_SERVER )
{
proto_send_newtux_server(PROTO_SEND_ALL, NULL, tux);
@@ -472,22 +453,14 @@ static void tuxGiveBonus(tux_t *tux, item_t *item)
static void tuxGiveGun(tux_t *tux, item_t *item)
{
-#ifndef PUBLIC_SERVER
- char msg[STR_SIZE];
#ifndef NO_SOUND
playSound("item_gun", SOUND_GROUP_BASE);
#endif
-#endif
tux->pickup_time = 0;
tux->shot[ item->type ] += GUN_MAX_SHOT;
tux->gun = item->type;
-#ifndef PUBLIC_SERVER
- sprintf(msg, "tux with id %d has new gun\n", tux->id);
- appendTextInTerm(msg);
-#endif
-
if( getNetTypeGame() == NET_GAME_TYPE_SERVER )
{
proto_send_newtux_server(PROTO_SEND_ALL, NULL, tux);