forked from mirror/OpenTTD
(svn r1168) -Cleanup: [Network] Cleaned the network code a bit. Added 'const'
and 'void' where needed, prefixed all functions, typedefs and global vars with 'Network' and organized all externals nicely.
This commit is contained in:
@@ -147,7 +147,7 @@ DEF_CONSOLE_CMD(ConStatus)
|
||||
{
|
||||
const char *status;
|
||||
int lag;
|
||||
const ClientState *cs;
|
||||
const NetworkClientState *cs;
|
||||
const NetworkClientInfo *ci;
|
||||
FOR_ALL_CLIENTS(cs) {
|
||||
lag = NetworkCalculateLag(cs);
|
||||
@@ -217,7 +217,7 @@ DEF_CONSOLE_CMD(ConKick)
|
||||
DEF_CONSOLE_CMD(ConResetCompany)
|
||||
{
|
||||
Player *p;
|
||||
ClientState *cs;
|
||||
NetworkClientState *cs;
|
||||
NetworkClientInfo *ci;
|
||||
|
||||
if (argc == 2) {
|
||||
|
Reference in New Issue
Block a user