summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-07-31 21:43:07 +0000
committeralberth <alberth@openttd.org>2010-07-31 21:43:07 +0000
commit7aabb887d4b613d02addf5b705d15c5f2c329208 (patch)
tree122ebe335d3f897b0ac451ffa701981258c65400 /src/network
parentb65a9eb85629006336e16db707bbc2a8a84c8593 (diff)
downloadopenttd-7aabb887d4b613d02addf5b705d15c5f2c329208.tar.xz
(svn r20269) -Codechange: Use IsLocalCompany() everywhere, document the function and two company globals.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_command.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_command.cpp b/src/network/network_command.cpp
index 5e0ca4323..39eae0f94 100644
--- a/src/network/network_command.cpp
+++ b/src/network/network_command.cpp
@@ -154,7 +154,7 @@ void NetworkSyncCommandQueue(NetworkClientSocket *cs)
*/
void NetworkExecuteLocalCommandQueue()
{
- assert(_current_company == _local_company);
+ assert(IsLocalCompany());
while (_local_command_queue != NULL) {