From 4367c9a117ccfe994a7fae143645957bd82c7213 Mon Sep 17 00:00:00 2001 From: zicodxx Date: Fri, 15 Jul 2011 11:46:06 +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 f7623b5df..076f9198a 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -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 -------- diff --git a/main/net_udp.c b/main/net_udp.c index c902dedc8..9e54e0316 100644 --- a/main/net_udp.c +++ b/main/net_udp.c @@ -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:"); diff --git a/main/net_udp.h b/main/net_udp.h index 54426982d..583a7d36e 100644 --- a/main/net_udp.h +++ b/main/net_udp.h @@ -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