[Opentnl-cvs] tnl/zap game.cpp,1.17,1.18 main.cpp,1.17,1.18
Brought to you by:
mark_frohnmayer,
s_alanet
From: Mark F. <mar...@us...> - 2004-05-03 23:31:57
|
Update of /cvsroot/opentnl/tnl/zap In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv374/zap Modified Files: game.cpp main.cpp Log Message: Updated log file writer for NULL file Removed bogus assert in game for getGameType() == NULL Index: main.cpp =================================================================== RCS file: /cvsroot/opentnl/tnl/zap/main.cpp,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** main.cpp 3 May 2004 22:55:51 -0000 1.17 --- main.cpp 3 May 2004 23:31:45 -0000 1.18 *************** *** 210,219 **** ~FileLogConsumer() { ! fclose(f); } void logString(const char *string) { ! fprintf(f, "%s\r\n", string); } } gFileLogConsumer; --- 210,221 ---- ~FileLogConsumer() { ! if(f) ! fclose(f); } void logString(const char *string) { ! if(f) ! fprintf(f, "%s\r\n", string); } } gFileLogConsumer; Index: game.cpp =================================================================== RCS file: /cvsroot/opentnl/tnl/zap/game.cpp,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** game.cpp 3 May 2004 22:06:16 -0000 1.17 --- game.cpp 3 May 2004 23:31:45 -0000 1.18 *************** *** 77,81 **** GameType *Game::getGameType() { - TNLAssert(mGameType, "Unexpected null game type!"); return mGameType; } --- 77,80 ---- |