[wpdev-commits] wolfpack log.cpp,1.8,1.9 sectors.cpp,1.16,1.17
Brought to you by:
rip,
thiagocorrea
|
From: <dar...@us...> - 2003-09-26 01:52:40
|
Update of /cvsroot/wpdev/wolfpack
In directory sc8-pr-cvs1:/tmp/cvs-serv20168
Modified Files:
log.cpp sectors.cpp
Log Message:
bugfixes
Index: log.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/log.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** log.cpp 20 Sep 2003 01:26:54 -0000 1.8
--- log.cpp 26 Sep 2003 01:52:35 -0000 1.9
***************
*** 69,73 ****
if ( !d.exists(path) )
{
- Console::instance()->log( LOG_WARNING, QString("log path (%1) doesn't exist, creating.\n").arg(path) );
d.mkdir( path );
}
--- 69,72 ----
***************
*** 80,84 ****
if( !logfile.open( IO_WriteOnly | IO_Append | IO_Translate ) )
{
! Console::instance()->log( LOG_ERROR, QString( "Couldn't open logfile '%1'\n" ).arg( path + filename ) );
return false;
}
--- 79,83 ----
if( !logfile.open( IO_WriteOnly | IO_Append | IO_Translate ) )
{
! Console::instance()->send( QString( "Couldn't open logfile '%1'\n" ).arg( path + filename ) );
return false;
}
Index: sectors.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/sectors.cpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** sectors.cpp 8 Sep 2003 10:58:47 -0000 1.16
--- sectors.cpp 26 Sep 2003 01:52:35 -0000 1.17
***************
*** 42,55 ****
}
- #undef realloc
-
- inline void *realloc( void *ptr, unsigned int size )
- {
- void *newPtr = malloc( size );
- memcpy( newPtr, ptr, size );
- free( ptr );
- return newPtr;
- }
-
unsigned int cSectorMap::gridHeight() const
{
--- 42,45 ----
|