diff options
author | rubidium <rubidium@openttd.org> | 2008-08-11 22:45:11 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-08-11 22:45:11 +0000 |
commit | d0c1a989a4226cc06a50b1a8c95b9ca8f0b9599e (patch) | |
tree | 96b3b7c215db821df9b9268eb9af5a55ee1200ce /src/misc.cpp | |
parent | 6995365535370da08116d49a30ebd84d56e7d8ff (diff) | |
download | openttd-d0c1a989a4226cc06a50b1a8c95b9ca8f0b9599e.tar.xz |
(svn r14047) -Codechange: move chatmessage handling to the network directory as that's the only case chat messages are used. Furthermore remove any trace of chatmessages when compiling without network support.
Diffstat (limited to 'src/misc.cpp')
-rw-r--r-- | src/misc.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/misc.cpp b/src/misc.cpp index 3e89366b9..463b05707 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -29,6 +29,7 @@ #include "animated_tile_func.h" #include "tilehighlight_func.h" #include "core/bitmath_func.hpp" +#include "network/network_func.h" #include "table/strings.h" #include "table/sprites.h" @@ -105,7 +106,9 @@ void InitializeGame(uint size_x, uint size_y, bool reset_date) InitializeCheats(); InitTextEffects(); - InitChatMessage(); +#ifdef ENABLE_NETWORK + NetworkInitChatMessage(); +#endif /* ENABLE_NETWORK */ InitializeAnimatedTiles(); InitializeLandscapeVariables(false); |