diff options
author | alberth <alberth@openttd.org> | 2010-07-31 21:43:07 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-07-31 21:43:07 +0000 |
commit | 7aabb887d4b613d02addf5b705d15c5f2c329208 (patch) | |
tree | 122ebe335d3f897b0ac451ffa701981258c65400 /src/network | |
parent | b65a9eb85629006336e16db707bbc2a8a84c8593 (diff) | |
download | openttd-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.cpp | 2 |
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) { |