|
From: <yu...@us...> - 2003-11-15 20:48:10
|
Update of /cvsroot/timewarp/source
In directory sc8-pr-cvs1:/tmp/cvs-serv2688/source
Modified Files:
gui.cpp
Log Message:
Fixed not virtual destructor bugs.
Fixed uninitialized varriable use bugs.
Fixed calculation damage in one of the ships
Index: gui.cpp
===================================================================
RCS file: /cvsroot/timewarp/source/gui.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** gui.cpp 21 Oct 2003 02:02:34 -0000 1.8
--- gui.cpp 15 Nov 2003 20:48:06 -0000 1.9
***************
*** 289,293 ****
static char result[512];
enum { INI, CFG, DEV, NORMAL};
! int type;
strcpy(buffy, item);
if (*item == '/') {
--- 289,293 ----
static char result[512];
enum { INI, CFG, DEV, NORMAL};
! int type = -1;
strcpy(buffy, item);
if (*item == '/') {
***************
*** 304,307 ****
--- 304,308 ----
ce.subtype = ConfigEvent::GET;
+ ASSERT(type!=-1);
switch (type) {
case NORMAL: {
***************
*** 333,337 ****
char buffy2[256];
enum { INI, CFG, DEV, NORMAL};
! int type;
strcpy(buffy, item);
if (*item == '/') {
--- 334,338 ----
char buffy2[256];
enum { INI, CFG, DEV, NORMAL};
! int type = -1;
strcpy(buffy, item);
if (*item == '/') {
***************
*** 350,353 ****
--- 351,355 ----
ce.subtype = ConfigEvent::SET;
+ ASSERT(type!=-1);
switch (type) {
case NORMAL: {
|