forbid % to read into multi messages to not mess up the string

This commit is contained in:
zicodxx 2007-04-15 16:33:04 +00:00
parent 3f3b13b893
commit 0200658155
2 changed files with 5 additions and 1 deletions

View file

@ -1,5 +1,9 @@
D1X-Rebirth Changelog
20070415
--------
main/multi.c: forbid % to read into multi messages to not mess up the string
20070414
--------
main/kconfig.c, main/kmatrix.c, main/newmenu.c, main/scores.c, main/titles.c: introducing kconfig_sub_draw_table() making it possible to redraw configuration tables with OGL swapping and clearing; increased timer_delay for menus and briefings to save more CPU usage

View file

@ -1635,7 +1635,7 @@ void multi_message_input_sub( int key )
default:
if ( key > 0 ) {
int ascii = key_to_ascii(key);
if ((ascii < 255 )) {
if ((ascii < 255 ) && (ascii != 37)) {
if (multi_message_index < MAX_MESSAGE_LEN-2 ) {
Network_message[multi_message_index++] = ascii;
Network_message[multi_message_index] = 0;