[wpdev-commits] wolfpack prototypes.h,1.106,1.107 wolfpack.cpp,1.451,1.452
Brought to you by:
rip,
thiagocorrea
|
From: <dar...@us...> - 2003-09-03 15:00:56
|
Update of /cvsroot/wpdev/wolfpack
In directory sc8-pr-cvs1:/tmp/cvs-serv24525
Modified Files:
prototypes.h wolfpack.cpp
Log Message:
Further Cleanups of wolfpack.cpp
Index: prototypes.h
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/prototypes.h,v
retrieving revision 1.106
retrieving revision 1.107
diff -C2 -d -r1.106 -r1.107
*** prototypes.h 3 Sep 2003 14:44:21 -0000 1.106
--- prototypes.h 3 Sep 2003 15:00:50 -0000 1.107
***************
*** 41,46 ****
void savelog(const char *msg, char *logfile);
- void endmessage(int x);
-
void goldsfx( cUOSocket *socket, UINT16 amount, bool hearall );
--- 41,44 ----
Index: wolfpack.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/wolfpack.cpp,v
retrieving revision 1.451
retrieving revision 1.452
diff -C2 -d -r1.451 -r1.452
*** wolfpack.cpp 3 Sep 2003 14:44:21 -0000 1.451
--- wolfpack.cpp 3 Sep 2003 15:00:51 -0000 1.452
***************
*** 272,280 ****
keeprun=0;
break;
- case 'T':
- case 't':
- endtime=uiCurrentTime+(MY_CLOCKS_PER_SEC*600);
- endmessage(0);
- break;
case '#':
--- 272,275 ----
***************
*** 1061,1081 ****
else
return 0;
- }
-
- void endmessage(int x) // If shutdown is initialized
- {
- x = 0;
- unsigned int igetclock = uiCurrentTime;
- if (endtime < igetclock)
- endtime = igetclock;
-
- QString message;
-
- if( ( ( ( endtime - igetclock ) / MY_CLOCKS_PER_SEC ) / 60 ) < 1 )
- message = tr( "Server going down in %1 secs." ).arg( ( endtime - igetclock ) / MY_CLOCKS_PER_SEC );
- else
- message = tr( "Server going down in %1 minutes." ).arg( ( ( endtime - igetclock ) / MY_CLOCKS_PER_SEC ) / 60 );
-
- cNetwork::instance()->broadcast( message );
- clConsole.send( message );
}
--- 1056,1058 ----
|