From e80d4075e2aa5cb5e364455f10cbe52c051cf8f9 Mon Sep 17 00:00:00 2001 From: ehouse Date: Tue, 22 Jun 2004 06:29:19 +0000 Subject: [PATCH] up stream version to include hintrect boolean --- common/game.c | 4 ++++ common/game.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/common/game.c b/common/game.c index 7f6d2c368..36bc10d7a 100644 --- a/common/game.c +++ b/common/game.c @@ -340,7 +340,11 @@ gi_readFromStream( MPFORMAL XWStreamCtxt* stream, XP_U16 strVersion, } #endif #ifdef XWFEATURE_SEARCHLIMIT + if ( strVersion >= CUR_STREAM_VERS ) { gi->allowHintRect = stream_getBits( stream, 1 ); + } else { + gi->allowHintRect = XP_FALSE; + } #endif diff --git a/common/game.h b/common/game.h index 1791c1a21..3745a3812 100644 --- a/common/game.h +++ b/common/game.h @@ -32,6 +32,8 @@ extern "C" { #ifdef FEATURE_TRAY_EDIT # define CUR_STREAM_VERS 0x02 +#elif defined XWFEATURE_SEARCHLIMIT +# define CUR_STREAM_VERS 0x03 #else # define CUR_STREAM_VERS 0x01 #endif