Removed obsolete HUD cleaning code - patch by Kp
This commit is contained in:
parent
f4ab2e63af
commit
66668712bf
|
@ -18,6 +18,7 @@ editor/centers.c, main/gamecntl.c, main/gamerend.c: Fixed argument specifier mis
|
|||
arch/ogl/gr.c, main/game.c: Moved screenshot message formating to HUD_init_message - patch by Kp (and me for non-OGL code ;))
|
||||
main/automap.c, main/credits.c, main/gamerend.c, main/gauges.c, main/hud.c, main/kmatrix.c, main/menu.c, main/newmenu.c, main/scores.c: Converted gr_printf to gr_string where needed - patch by Kp
|
||||
editor/medrobot.c, main/endlevel.c, main/fireball.c, main/gamecntl.c, main/hostage.c, main/multi.c, main/newdemo.c, main/powerup.c, main/wall.c, main/weapon.c, ui/file.c: Added dummy "%s" to prevent formatting untrusted literals - patch by Kp
|
||||
main/hud.c: Removed obsolete HUD cleaning code - patch by Kp
|
||||
|
||||
20121102
|
||||
--------
|
||||
|
|
|
@ -147,14 +147,6 @@ int HUD_init_message_va(int class_flag, char * format, va_list args)
|
|||
}
|
||||
}
|
||||
|
||||
// HACK!!!
|
||||
// clean message if necessary.
|
||||
// using placeholders may mess up message string and crash game(s).
|
||||
// block them also to prevent attacks from other clients.
|
||||
for (i = 0; i <= strlen(message); i++)
|
||||
if (message[i] == '%')
|
||||
message [i] = ' ';
|
||||
|
||||
if (HUD_nmessages >= HUD_MAX_NUM_STOR)
|
||||
{
|
||||
HUD_nmessages = HUD_MAX_NUM_STOR; // unnecessary but just in case it might be bigger... which is impossible
|
||||
|
|
Loading…
Reference in a new issue