Fix comparison is always false warning

This commit is contained in:
Chris Taylor 2011-10-09 20:07:21 +08:00
parent 3121fb4990
commit 8e0579c4a6
2 changed files with 2 additions and 1 deletions

View file

@ -4,6 +4,7 @@ D1X-Rebirth Changelog
--------
main/render.c: Initialise dyn_light using memset, fixing a warning
arch/include/event.h, arch/include/window.h, arch/sdl/event.c, arch/sdl/window.c, include/ui.h, ui/dialog.c, ui/file.c, ui/keypress.c, ui/menu.c, ui/message.c, ui/popup.c: Add support for 'modeless' windows - windows that will allow events to be passed on to the underlying window. Intended for the editor
main/net_udp.c: Fix comparison is always false warning
20110927
--------

View file

@ -2463,7 +2463,7 @@ void net_udp_process_dump(ubyte *data, int len, struct _sockaddr sender_addr)
multi_reset_stuff();
break;
default:
if (data[1] < DUMP_CLOSED || data[1] > DUMP_LEVEL) // invalid dump... heh
if (data[1] > DUMP_LEVEL) // invalid dump... heh
break;
nm_messagebox(NULL, 1, TXT_OK, NET_DUMP_STRINGS(data[1]));
Network_status = NETSTAT_MENU;