mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
Parse more info from Blood's map header
This commit is contained in:
parent
9659b894a3
commit
e6a1d6b516
1 changed files with 5 additions and 2 deletions
|
@ -249,7 +249,7 @@ static bool P_LoadBloodMap (BYTE *data, size_t len, FMapThing **mapthings, int *
|
||||||
BYTE infoBlock[37];
|
BYTE infoBlock[37];
|
||||||
int mapver = data[5];
|
int mapver = data[5];
|
||||||
DWORD matt;
|
DWORD matt;
|
||||||
int numRevisions, numWalls, numsprites, skyLen;
|
int numRevisions, numWalls, numsprites, skyLen, visibility, parallaxType;
|
||||||
int i;
|
int i;
|
||||||
int k;
|
int k;
|
||||||
|
|
||||||
|
@ -269,11 +269,14 @@ static bool P_LoadBloodMap (BYTE *data, size_t len, FMapThing **mapthings, int *
|
||||||
{
|
{
|
||||||
memcpy (infoBlock, data + 6, 37);
|
memcpy (infoBlock, data + 6, 37);
|
||||||
}
|
}
|
||||||
|
skyLen = 2 << LittleShort(*(WORD *)(infoBlock + 16));
|
||||||
|
visibility = LittleLong(*(DWORD *)(infoBlock + 18));
|
||||||
|
parallaxType = infoBlock[26];
|
||||||
numRevisions = LittleLong(*(DWORD *)(infoBlock + 27));
|
numRevisions = LittleLong(*(DWORD *)(infoBlock + 27));
|
||||||
numsectors = LittleShort(*(WORD *)(infoBlock + 31));
|
numsectors = LittleShort(*(WORD *)(infoBlock + 31));
|
||||||
numWalls = LittleShort(*(WORD *)(infoBlock + 33));
|
numWalls = LittleShort(*(WORD *)(infoBlock + 33));
|
||||||
numsprites = LittleShort(*(WORD *)(infoBlock + 35));
|
numsprites = LittleShort(*(WORD *)(infoBlock + 35));
|
||||||
skyLen = 2 << LittleShort(*(WORD *)(infoBlock + 16));
|
Printf("Visibility: %d\n", visibility);
|
||||||
|
|
||||||
if (mapver == 7)
|
if (mapver == 7)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue