summaryrefslogtreecommitdiff
path: root/src/network/network.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-05-17 01:00:56 +0000
committersmatz <smatz@openttd.org>2009-05-17 01:00:56 +0000
commit871107f52952ee59c353feab933126ed206e60bf (patch)
tree482884dfedc1700bddb8812f1de755212ed8bb22 /src/network/network.cpp
parented1e54bd84074412ea9f273b7cd86aed42d844ce (diff)
downloadopenttd-871107f52952ee59c353feab933126ed206e60bf.tar.xz
(svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index)
Diffstat (limited to 'src/network/network.cpp')
-rw-r--r--src/network/network.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network.cpp b/src/network/network.cpp
index 95ff34dcc..c661e1a98 100644
--- a/src/network/network.cpp
+++ b/src/network/network.cpp
@@ -97,7 +97,7 @@ extern void StateGameLoop();
*/
NetworkClientInfo *NetworkFindClientInfoFromIndex(ClientIndex index)
{
- return IsValidNetworkClientInfoIndex(index) ? NetworkClientInfo::Get(index) : NULL;
+ return NetworkClientInfo::IsValidID(index) ? NetworkClientInfo::Get(index) : NULL;
}
/**
@@ -339,7 +339,7 @@ static uint NetworkCountActiveClients()
uint count = 0;
FOR_ALL_CLIENT_INFOS(ci) {
- if (IsValidCompanyID(ci->client_playas)) count++;
+ if (Company::IsValidID(ci->client_playas)) count++;
}
return count;