From 68b3c9843acb9ddf2e96d625fbb4db6ddbbfc02a Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sat, 29 Mar 2008 12:04:14 +0000 Subject: [PATCH] fixed the extra *** in when changing name. fixed so that sv_powerups works --- src/game/server/gs_game.cpp | 2 +- src/game/server/gs_server.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/server/gs_game.cpp b/src/game/server/gs_game.cpp index 833bad4af..c94a14174 100644 --- a/src/game/server/gs_game.cpp +++ b/src/game/server/gs_game.cpp @@ -70,7 +70,7 @@ bool gameobject::on_entity(int index, vec2 pos) type = POWERUP_WEAPON; subtype = WEAPON_RIFLE; } - else if(index == ENTITY_POWERUP_NINJA) + else if(index == ENTITY_POWERUP_NINJA && config.sv_powerups) { type = POWERUP_NINJA; subtype = WEAPON_NINJA; diff --git a/src/game/server/gs_server.cpp b/src/game/server/gs_server.cpp index fcb03f028..d41ffd9c3 100644 --- a/src/game/server/gs_server.cpp +++ b/src/game/server/gs_server.cpp @@ -2154,7 +2154,7 @@ void mods_message(int msgtype, int client_id) if(msgtype == NETMSGTYPE_CL_CHANGEINFO && strcmp(oldname, server_clientname(client_id)) != 0) { char chattext[256]; - str_format(chattext, sizeof(chattext), "*** %s changed name to %s", oldname, server_clientname(client_id)); + str_format(chattext, sizeof(chattext), "%s changed name to %s", oldname, server_clientname(client_id)); send_chat(-1, -1, chattext); }