From 632f001f16c5074d37a913a5642717b0096e8910 Mon Sep 17 00:00:00 2001 From: zicodxx Date: Fri, 15 Jul 2011 11:46:04 +0200 Subject: [PATCH] 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 --- CHANGELOG.txt | 1 + main/net_udp.c | 2 +- main/net_udp.h | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 05256f7e6..c090bfc0c 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -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 -------- diff --git a/main/net_udp.c b/main/net_udp.c index 85eb31693..552597433 100644 --- a/main/net_udp.c +++ b/main/net_udp.c @@ -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:"); diff --git a/main/net_udp.h b/main/net_udp.h index d92a93c66..2180553c8 100644 --- a/main/net_udp.h +++ b/main/net_udp.h @@ -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