mirror of https://github.com/ZDoom/gzdoom.git
parent
d99f5b4b99
commit
ba78504419
|
@ -55,6 +55,7 @@ enum
|
||||||
ML_BLOCKMAP, // LUT, motion clipping, walls/grid element
|
ML_BLOCKMAP, // LUT, motion clipping, walls/grid element
|
||||||
ML_BEHAVIOR, // [RH] Hexen-style scripts. If present, THINGS
|
ML_BEHAVIOR, // [RH] Hexen-style scripts. If present, THINGS
|
||||||
// and LINEDEFS are also Hexen-style.
|
// and LINEDEFS are also Hexen-style.
|
||||||
|
ML_MAX,
|
||||||
|
|
||||||
// [RH] These are compressed (and extended) nodes. They combine the data from
|
// [RH] These are compressed (and extended) nodes. They combine the data from
|
||||||
// vertexes, segs, ssectors, and nodes into a single lump.
|
// vertexes, segs, ssectors, and nodes into a single lump.
|
||||||
|
|
|
@ -207,7 +207,7 @@ static int GetMapIndex(const char *mapname, int lastindex, const char *lumpname,
|
||||||
{"REJECT", false},
|
{"REJECT", false},
|
||||||
{"BLOCKMAP", false},
|
{"BLOCKMAP", false},
|
||||||
{"BEHAVIOR", false},
|
{"BEHAVIOR", false},
|
||||||
{"SCRIPTS", false},
|
//{"SCRIPTS", false},
|
||||||
};
|
};
|
||||||
|
|
||||||
if (lumpname==NULL) lumpname="";
|
if (lumpname==NULL) lumpname="";
|
||||||
|
@ -296,7 +296,7 @@ MapData *P_OpenMapData(const char * mapname)
|
||||||
|
|
||||||
map->MapLumps[index].FilePos = Wads.GetLumpOffset(lump_name + i);
|
map->MapLumps[index].FilePos = Wads.GetLumpOffset(lump_name + i);
|
||||||
map->MapLumps[index].Size = Wads.LumpLength(lump_name + i);
|
map->MapLumps[index].Size = Wads.LumpLength(lump_name + i);
|
||||||
strncpy(map->MapLumps[i].Name, lumpname, 8);
|
strncpy(map->MapLumps[index].Name, lumpname, 8);
|
||||||
}
|
}
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
@ -351,7 +351,7 @@ MapData *P_OpenMapData(const char * mapname)
|
||||||
|
|
||||||
map->MapLumps[index].FilePos = offset;
|
map->MapLumps[index].FilePos = offset;
|
||||||
map->MapLumps[index].Size = size;
|
map->MapLumps[index].Size = size;
|
||||||
strncpy(map->MapLumps[i].Name, lumpname, 8);
|
strncpy(map->MapLumps[index].Name, lumpname, 8);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
struct MapData
|
struct MapData
|
||||||
{
|
{
|
||||||
wadlump_t MapLumps[ML_BEHAVIOR+1];
|
wadlump_t MapLumps[ML_MAX];
|
||||||
bool HasBehavior;
|
bool HasBehavior;
|
||||||
bool CloseOnDestruct;
|
bool CloseOnDestruct;
|
||||||
bool Encrypted;
|
bool Encrypted;
|
||||||
|
|
Loading…
Reference in New Issue