mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 09:34:19 +00:00
fixed the extra *** in when changing name. fixed so that sv_powerups works
This commit is contained in:
parent
6349abcbdd
commit
68b3c9843a
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue