From 06d3e6dafeb2e64817627c93cecdbbefc75cbc73 Mon Sep 17 00:00:00 2001 From: stpohle Date: Fri, 15 Dec 2006 18:41:45 +0000 Subject: [PATCH] little changes.. --- ChangeLog | 5 ++++- src/field.c | 13 +++++++++---- src/packets.c | 2 +- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 20d3fbb..99b612c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,11 @@ -$Id: ChangeLog,v 1.115 2006/08/20 01:14:41 stpohle Exp $ +$Id: ChangeLog,v 1.116 2006/12/15 18:41:45 stpohle Exp $ Version 0.11.7.1 (still in progress) ================ +- Fixed: compile warning: packets.c(635): error #592: variable "s_mod" is + used before its value is set (reported by: David Binderman) + - Changed: all data will have thier own Makefile. So "make install" and "make dist" won't copy the CVS dirs. diff --git a/src/field.c b/src/field.c index 43bf905..7db5d27 100644 --- a/src/field.c +++ b/src/field.c @@ -1,4 +1,4 @@ -/* $Id: field.c,v 1.59 2006/08/15 16:05:09 stpohle Exp $ */ +/* $Id: field.c,v 1.60 2006/12/15 18:41:45 stpohle Exp $ */ /* field.c - procedures which are needed to control the field */ #include "bomberclone.h" @@ -185,16 +185,21 @@ draw_stone (int x, int y) stone_drawfire (x, y, -1); break; } -/* + if (debug) { char txt[64]; + /* ex numbers.. sprintf (txt, "%d,%d%d", map.field[x][y].ex[0].count, map.field[x][y].ex[0].bomb_p, map.field[x][y].ex[0].bomb_b); font_gfxdraw (dest.x, dest.y, txt, 0, COLOR_white, (y*256) + 10); sprintf (txt, "%d,%d%d", map.field[x][y].ex[1].count, map.field[x][y].ex[1].bomb_p, map.field[x][y].ex[1].bomb_b); font_gfxdraw (dest.x, dest.y+10, txt, 0, COLOR_white, (y*256) + 10); sprintf (txt, "%d,%d%d", map.field[x][y].ex[2].count, map.field[x][y].ex[2].bomb_p, map.field[x][y].ex[2].bomb_b); font_gfxdraw (dest.x, dest.y+20, txt, 0, COLOR_white, (y*256) + 10); sprintf (txt, "%d,%d%d", map.field[x][y].ex[3].count, map.field[x][y].ex[3].bomb_p, map.field[x][y].ex[3].bomb_b); font_gfxdraw (dest.x, dest.y+30, txt, 0, COLOR_white, (y*256) + 10); - + */ + + /* number of bombs.. */ + sprintf (txt, "%d", map.bfield[x][y]); + font_gfxdraw (dest.x, dest.y+30, txt, 0, COLOR_white, (y*256) + 10); } -*/ + return; }; diff --git a/src/packets.c b/src/packets.c index 73d3759..b67ccef 100644 --- a/src/packets.c +++ b/src/packets.c @@ -638,7 +638,7 @@ send_servermode (_net_addr * addr, int pl_nr) d_printf ("Send ServerMode : update"); break; default: - d_printf ("Send ServerMode : mode %d", s_mod.state); + d_printf ("Send ServerMode : mode %d", bman.state); } d_printf ("Addr: %p\n", addr);