diff --git a/ChangeLog b/ChangeLog index 20dde45..13eb36a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,5 @@ -$Id: ChangeLog,v 1.105 2005/08/07 17:58:04 stpohle Exp $ +$Id: ChangeLog,v 1.106 2006/02/06 21:17:59 stpohle Exp $ +Version 0.11.7 (still in progress) - Fixed: High CPU usage in menus. This fix was made by Chris E.. diff --git a/configure.in b/configure.in index cd9bf58..43ea2af 100644 --- a/configure.in +++ b/configure.in @@ -5,7 +5,7 @@ dnl Please disable it in the Anjuta project configuration AC_INIT(configure.in) AC_CANONICAL_TARGET -AM_INIT_AUTOMAKE(bomberclone, 0.11.6.2) +AM_INIT_AUTOMAKE(bomberclone, 0.11.7) AM_CONFIG_HEADER(config.h) diff --git a/include/bomb.h b/include/bomb.h index 7d4c783..119d75d 100644 --- a/include/bomb.h +++ b/include/bomb.h @@ -1,4 +1,4 @@ -/* $Id: bomb.h,v 1.5 2005/04/10 00:22:16 stpohle Exp $ +/* $Id: bomb.h,v 1.6 2006/02/06 21:18:01 stpohle Exp $ * bomb include file */ @@ -37,8 +37,9 @@ struct { unsigned char state; // state of the bomb BS_* unsigned char mode; // mode of the bomb BM_* int ex_nr; // explosion number + _point source; // start of a kicked bomb _point dest; // destination to move the bomb to - float speed; // bomb moving speed + float speed; // bomb moving speed or kicked bomb 0.0=start 1.0=end } typedef _bomb; diff --git a/src/menu.c b/src/menu.c index a3214ae..d63b4d0 100644 --- a/src/menu.c +++ b/src/menu.c @@ -1,4 +1,4 @@ -/* $Id: menu.c,v 1.52 2005/08/07 17:58:05 stpohle Exp $ +/* $Id: menu.c,v 1.53 2006/02/06 21:18:01 stpohle Exp $ * Menuhandling */ #include "basic.h" @@ -629,7 +629,7 @@ menu_displaymessage (char *title, char *fmt, ...) memset (text, 0, sizeof (text)); memset (out, 0, sizeof (out)); va_start (args, fmt); - vsprintf (text, fmt, args); + vsnprintf (text, 512, fmt, args); va_end (args); menu_formattext (text, out, lines, &linenr, &maxlinelen, MENU_MESSAGES_MAXLINELEN, @@ -722,7 +722,7 @@ menu_displaytext (char *title, char *fmt, ...) memset (text, 0, sizeof (text)); memset (out, 0, sizeof (out)); va_start (args, fmt); - vsprintf (text, fmt, args); + vsnprintf (text, 512, fmt, args); va_end (args); menu_formattext (text, out, lines, &linenr, &maxlinelen, MENU_MESSAGES_MAXLINELEN, diff --git a/src/menulabels.c b/src/menulabels.c index bd41398..dee1795 100644 --- a/src/menulabels.c +++ b/src/menulabels.c @@ -1,4 +1,4 @@ -/* $Id: menulabels.c,v 1.7 2004/09/12 16:49:48 stpohle Exp $ +/* $Id: menulabels.c,v 1.8 2006/02/06 21:18:01 stpohle Exp $ * Menuhandling: labels */ #include "basic.h" @@ -72,7 +72,7 @@ void menu_create_text (_menu *menu, char *name, int x, int y, int maxlen, int ma memset (text, 0, sizeof (text)); memset (out, 0, sizeof (out)); va_start (args, fmt); - vsprintf (text, fmt, args); + vsnprintf (text, 1024, fmt, args); va_end (args); menu_formattext (text, out, lineptr, &linecnt, &maxchar, maxlen, maxlines);