fixed the extra *** in when changing name. fixed so that sv_powerups works

This commit is contained in:
Magnus Auvinen 2008-03-29 12:04:14 +00:00
parent 6349abcbdd
commit 68b3c9843a
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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);
}