From 54835047d4e2d605f84d8169ca74adc0b227be61 Mon Sep 17 00:00:00 2001 From: patty21 Date: Sun, 29 Jun 2003 01:51:25 +0000 Subject: [PATCH] Changed pkg resend timeout to 3 secs if game is not running --- src/network.h | 1 + src/pkgcache.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/network.h b/src/network.h index 4db90cb..564e991 100644 --- a/src/network.h +++ b/src/network.h @@ -9,6 +9,7 @@ network.h file... for everything what have to do with the network stuff #define PKG_RESENDCACHE_SIZE (64*1024) #define PKG_IN_INDEX_NUM 256 #define RESENDCACHE_TIMEOUT 400 +#define RESENDCACHE_TIMEOUT_MENU 3000 #define RESENDCACHE_RETRY 10 #define DOWNLOAD_TIMEOUT 2000 #define DYN_PKG_MAX_MISSING 4 diff --git a/src/pkgcache.c b/src/pkgcache.c index a65d9da..cbc9f9b 100644 --- a/src/pkgcache.c +++ b/src/pkgcache.c @@ -122,8 +122,8 @@ rscache_loop () { int len, pos, - timeout = RESENDCACHE_TIMEOUT; - + timeout; + if (bman.state==GS_running) timeout = RESENDCACHE_TIMEOUT; else timeout=RESENDCACHE_TIMEOUT_MENU; for (pos = 0; pos < resend_cache.fill && pos < PKG_RESENDCACHE_SIZE && pos >= 0;) { rscache_setpointer (pos);