mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-15 17:02:05 +00:00
e4d0d6bcdb
- extended compatibility text to allow changing line flags and setting line specials on specific linedefs. - removed Strain MAP07 hack and replaced it by a clean 'clearlineflags' option. - Added Doomo format translations for Sector_CopyScroller because this looks like something that might be useful for making some Boom maps work without having to resort to compatibility.txt. - added a compatibility setting for UAC Ultra MAP07 which exploited some undefined scrolling behavior in Boom. (What lengths are we going to make sloppily created maps work? This entire commit was just to address this particular problem...) SVN r2280 (trunk)
43 lines
823 B
C
43 lines
823 B
C
#ifndef COMPATIBILITY_H
|
|
#define COMPATIBILITY_H
|
|
|
|
#include "doomtype.h"
|
|
#include "tarray.h"
|
|
#include "p_setup.h"
|
|
|
|
union FMD5Holder
|
|
{
|
|
BYTE Bytes[16];
|
|
DWORD DWords[4];
|
|
hash_t Hash;
|
|
};
|
|
|
|
struct FCompatValues
|
|
{
|
|
int CompatFlags;
|
|
int BCompatFlags;
|
|
unsigned int ExtCommandIndex;
|
|
};
|
|
|
|
struct FMD5HashTraits
|
|
{
|
|
hash_t Hash(const FMD5Holder key)
|
|
{
|
|
return key.Hash;
|
|
}
|
|
int Compare(const FMD5Holder left, const FMD5Holder right)
|
|
{
|
|
return left.DWords[0] != right.DWords[0] ||
|
|
left.DWords[1] != right.DWords[1] ||
|
|
left.DWords[2] != right.DWords[2] ||
|
|
left.DWords[3] != right.DWords[3];
|
|
}
|
|
};
|
|
|
|
extern TMap<FMD5Holder, FCompatValues, FMD5HashTraits> BCompatMap;
|
|
|
|
void ParseCompatibility();
|
|
void CheckCompatibility(MapData *map);
|
|
void SetCompatibilityParams();
|
|
|
|
#endif
|