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:04 +02:00
parent 77f0edf8ac
commit 632f001f16
3 changed files with 4 additions and 3 deletions

View file

@ -3,6 +3,7 @@ D1X-Rebirth Changelog
20110715
--------
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

@ -4951,7 +4951,7 @@ static int show_game_rules_handler(window *wind, d_event *event, netgame_info *n
gr_printf( FSPACX( 25),FSPACY( 55), "Reactor Life:");
gr_printf( FSPACX( 25),FSPACY( 61), "Max Time:");
gr_printf( FSPACX( 25),FSPACY( 67), "Kill Goal:");
gr_printf( FSPACX( 25),FSPACY( 73), "Pakets per second:");
gr_printf( FSPACX( 25),FSPACY( 73), "Packets per sec.:");
gr_printf( FSPACX(155),FSPACY( 55), "Show Players On Automap:");
gr_printf( FSPACX(155),FSPACY( 61), "Invul when reappearing:");
gr_printf( FSPACX(155),FSPACY( 67), "Bright player ships:");

View file

@ -35,9 +35,9 @@ void net_udp_send_mdata_direct(ubyte *data, int data_len, int pnum, int priority
#define TRACKER_PORT_DEFAULT 42420
#endif
#define UDP_REQ_ID "D1XR" // 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