raze/source/build/include/build.h

47 lines
1 KiB
C
Raw Normal View History

// "Build Engine & Tools" Copyright (c) 1993-1997 Ken Silverman
// Ken Silverman's official web site: "http://www.advsys.net/ken"
// See the included license file "BUILDLIC.TXT" for license info.
//
// This file has been modified from Ken Silverman's original release
// by Jonathon Fowler (jf@jonof.id.au)
// by the EDuke32 team (development@voidpoint.com)
#pragma once
#ifndef build_h_
#define build_h_
2020-05-28 06:31:08 +00:00
#define TRANSPARENT_INDEX 0
2020-04-11 22:04:02 +00:00
static_assert('\xff' == 255, "Char must be unsigned!");
#include "printf.h"
#include "palette.h"
2019-10-23 19:11:37 +00:00
#include "c_cvars.h"
2020-04-11 21:39:40 +00:00
#include "cmdlib.h"
typedef int64_t coord_t;
#define POINT2(i) (wall[wall[i].point2])
#include "maptypes.h"
#include "clip.h"
enum {
ENGINECOMPATIBILITY_NONE = 0,
ENGINECOMPATIBILITY_19950829, // Powerslave/Exhumed
ENGINECOMPATIBILITY_19960925, // Blood v1.21
ENGINECOMPATIBILITY_19961112, // Duke 3d v1.5, Redneck Rampage
};
inline int32_t enginecompatibility_mode;
2021-05-11 23:29:18 +00:00
inline int32_t ksqrt(uint64_t num)
{
2021-05-11 23:29:18 +00:00
return int(sqrt(double(num)));
}
#endif // build_h_