Fixed typo in Packets per sec. in GAME_RULES screen; Reduced max amount of games shown on netlist to 900 to reduce RAM usage... as if we'd ever reach this

This commit is contained in:
zicodxx 2011-07-15 11:46:06 +02:00
parent b83e27005f
commit 4367c9a117
3 changed files with 4 additions and 3 deletions

View file

@ -4,6 +4,7 @@ D2X-Rebirth Changelog
--------
main/net_ipx.c, main/net_udp.c: When updating netgame hoard game flag used for compability reasons must be removed as it can be set - otherwise screwing up game mode display in netlist menu
arch/sdl/digi.c, main/digi.h, main/songs.c, misc/hmp.c: Bail out of hmp_reset() if midiOutOpen fails and return error with -debug set; execute hmp_reset() before first song plays; renamed digi_win32_stop_current_song() to digi_win32_stop_midi_song() to keep naming convention; Fixed some compiler warnings
main/net_udp.c, main/net_udp.h: Fixed typo in Packets per sec. in GAME_RULES screen; Reduced max amount of games shown on netlist to 900 to reduce RAM usage... as if we'd ever reach this
20110714
--------

View file

@ -5215,7 +5215,7 @@ static int show_game_rules_handler(window *wind, d_event *event, netgame_info *n
gr_printf( FSPACX( 25),FSPACY( 35), "Reactor Life:");
gr_printf( FSPACX( 25),FSPACY( 41), "Max Time:");
gr_printf( FSPACX( 25),FSPACY( 47), "Kill Goal:");
gr_printf( FSPACX( 25),FSPACY( 53), "Pakets per second:");
gr_printf( FSPACX( 25),FSPACY( 53), "Packets per sec.:");
gr_printf( FSPACX(155),FSPACY( 35), "Invul when reappearing:");
gr_printf( FSPACX(155),FSPACY( 41), "Marker camera views:");
gr_printf( FSPACX(155),FSPACY( 47), "Indestructible lights:");

View file

@ -36,9 +36,9 @@ void net_udp_send_netgame_update();
#define TRACKER_PORT_DEFAULT 42420
#endif
#define UDP_REQ_ID "D2XR" // ID string for a request packet
#define UDP_MAX_NETGAMES 3000
#define UDP_MAX_NETGAMES 900
#define UDP_NETGAMES_PPAGE 12 // Netgames on one page of Netlist
#define UDP_NETGAMES_PAGES 250 // Pages available on Netlist (UDP_MAX_NETGAMES/UDP_NETGAMES_PPAGE)
#define UDP_NETGAMES_PAGES 75 // Pages available on Netlist (UDP_MAX_NETGAMES/UDP_NETGAMES_PPAGE)
#define UDP_TIMEOUT (10*F1_0) // 10 seconds disconnect timeout
#define UDP_MDATA_STOR_QUEUE_SIZE 500 // Store up to 500 MDATA packets