Changed pkg resend timeout to 3 secs if game is not running

origin
patty21 23 years ago
parent e87822fb07
commit 54835047d4

@ -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_RESENDCACHE_SIZE (64*1024)
#define PKG_IN_INDEX_NUM 256 #define PKG_IN_INDEX_NUM 256
#define RESENDCACHE_TIMEOUT 400 #define RESENDCACHE_TIMEOUT 400
#define RESENDCACHE_TIMEOUT_MENU 3000
#define RESENDCACHE_RETRY 10 #define RESENDCACHE_RETRY 10
#define DOWNLOAD_TIMEOUT 2000 #define DOWNLOAD_TIMEOUT 2000
#define DYN_PKG_MAX_MISSING 4 #define DYN_PKG_MAX_MISSING 4

@ -122,8 +122,8 @@ rscache_loop ()
{ {
int len, int len,
pos, 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;) { for (pos = 0; pos < resend_cache.fill && pos < PKG_RESENDCACHE_SIZE && pos >= 0;) {
rscache_setpointer (pos); rscache_setpointer (pos);

Loading…
Cancel
Save