mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
Merged from revision: 7342
Fixes (by Buggler) - Fixed roof issues for explored rooms in big maps not properly saved - Increased MAX_CLIMBSPOTS_PER_BUILDING and MAX_BUILDINGS to 255 git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7343 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -6,11 +6,11 @@
|
||||
// for what it's worth, 2 bytes, we use roof climb spots as 1-based
|
||||
// so the 0th entry is always 0 and can be compared with (and not equal)
|
||||
// NOWHERE or any other location
|
||||
#define MAX_CLIMBSPOTS_PER_BUILDING 21
|
||||
#define MAX_CLIMBSPOTS_PER_BUILDING 255
|
||||
|
||||
// similarly for buildings, only we really want 0 to be invalid index
|
||||
#define NO_BUILDING 0
|
||||
#define MAX_BUILDINGS 31
|
||||
#define MAX_BUILDINGS 255
|
||||
|
||||
typedef struct BUILDING
|
||||
{
|
||||
|
||||
@@ -28,8 +28,9 @@ extern BOOLEAN gfLoadingExitGrids;
|
||||
|
||||
BOOLEAN gfApplyChangesToTempFile = FALSE;
|
||||
|
||||
// There are 3200 bytes, and each bit represents the revelaed status.
|
||||
// 3200 bytes * 8 bits = 25600 map elements
|
||||
// There are 3200 bytes, and each bit represents the revealed status.
|
||||
// 3200 bytes * 8 bits = 25600 map elements
|
||||
// BIGMAPS has now a theoretical limit of 2000 * 2000 = 4,000,000 map elements; 500k bytes
|
||||
UINT8 *gpRevealedMap;
|
||||
|
||||
#ifdef JA2UB
|
||||
@@ -924,7 +925,7 @@ BOOLEAN LoadRevealedStatusArrayFromRevealedTempFile()
|
||||
|
||||
void SetSectorsRevealedBit( UINT32 usMapIndex )
|
||||
{
|
||||
UINT16 usByteNumber;
|
||||
UINT32 usByteNumber;
|
||||
UINT8 ubBitNumber;
|
||||
|
||||
usByteNumber = usMapIndex / 8;
|
||||
@@ -948,7 +949,7 @@ void SetMapRevealedStatus()
|
||||
ClearSlantRoofs( );
|
||||
|
||||
//Loop through all bytes in the array
|
||||
for( usByteCnt=0; usByteCnt< 3200; usByteCnt++)
|
||||
for( usByteCnt=0; usByteCnt< (UINT32) NUM_REVEALED_BYTES; usByteCnt++)
|
||||
{
|
||||
//loop through all the bits in the byte
|
||||
for( ubBitCnt=0; ubBitCnt<8; ubBitCnt++)
|
||||
|
||||
Reference in New Issue
Block a user