diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-08-05 08:59:38 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-08-05 08:59:38 +0000 |
| commit | 421300ffb893ff406f9334482d9867d38ec67c00 (patch) | |
| tree | dfc07c9971d0f1322979455fbcca33066ea5b7ad /src/game/client | |
| parent | c1509e5cd4ca1efcc1b737d8759059c1724f4ecf (diff) | |
| download | zcatch-421300ffb893ff406f9334482d9867d38ec67c00.tar.gz zcatch-421300ffb893ff406f9334482d9867d38ec67c00.zip | |
many small changes everywhere
Diffstat (limited to 'src/game/client')
| -rw-r--r-- | src/game/client/game_client.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/game/client/game_client.cpp b/src/game/client/game_client.cpp index 64ab18f0..8b813968 100644 --- a/src/game/client/game_client.cpp +++ b/src/game/client/game_client.cpp @@ -1665,8 +1665,16 @@ void render_game() draw_round_rect(x-10.f, y-10.f, w, h, 40.0f); gfx_quads_end(); - float tw = gfx_pretty_text_width( 64, "Score Board"); - gfx_pretty_text(x+w/2-tw/2, y, 64, "Score Board"); + if(gameobj->game_over) + { + float tw = gfx_pretty_text_width( 64, "Game Over"); + gfx_pretty_text(x+w/2-tw/2, y, 64, "Game Over"); + } + else + { + float tw = gfx_pretty_text_width( 64, "Score Board"); + gfx_pretty_text(x+w/2-tw/2, y, 64, "Score Board"); + } y += 64.0f; // find players @@ -1890,6 +1898,11 @@ void modc_message(int msg) const char *message = msg_unpack_string(); dbg_msg("message", "chat cid=%d msg='%s'", cid, message); chat_add_line(cid, message); + + if(cid >= 0) + snd_play(data->sounds[SOUND_CHAT_CLIENT].sounds[0].id, SND_PLAY_ONCE, 1.0f, 0.0f); + else + snd_play(data->sounds[SOUND_CHAT_SERVER].sounds[0].id, SND_PLAY_ONCE, 1.0f, 0.0f); } else if(msg == MSG_SETNAME) { |