diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-03-23 09:24:47 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-03-23 09:24:47 +0000 |
| commit | bf298955bdbde737f2ae6c440753f3dcb52ddc5f (patch) | |
| tree | 7ff59e9746314bdecb57d3711af6d1aa76ebed2d /src/game/client/gc_hooks.cpp | |
| parent | 8a0ee875867bf06f060726ad639e4ab5a92017a1 (diff) | |
| download | zcatch-bf298955bdbde737f2ae6c440753f3dcb52ddc5f.tar.gz zcatch-bf298955bdbde737f2ae6c440753f3dcb52ddc5f.zip | |
fixed the motd message displaying the first line correctly
Diffstat (limited to 'src/game/client/gc_hooks.cpp')
| -rw-r--r-- | src/game/client/gc_hooks.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/client/gc_hooks.cpp b/src/game/client/gc_hooks.cpp index 5dadb558..d3feb871 100644 --- a/src/game/client/gc_hooks.cpp +++ b/src/game/client/gc_hooks.cpp @@ -552,7 +552,7 @@ extern "C" void modc_message(int msgtype) dbg_msg("game", "MOTD: %s", server_motd); // take the first line as a center text - int len = 0; + int len = strlen(server_motd)+1; for(int i = 0; server_motd[i]; i++) { if(server_motd[i] == '\n') |