raze/source/build/include/build.h
Christoph Oelckers cbb66f8e31 - use BFSSectorSearch to drive the clipmove collection loop.
This gets rid of another bunch of both code and data.
2023-11-03 16:52:09 +01:00

45 lines
1,023 B
C

// "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_
#define TRANSPARENT_INDEX 0
static_assert('\xff' == 255, "Char must be unsigned!");
#include "printf.h"
#include "palette.h"
#include "c_cvars.h"
#include "cmdlib.h"
typedef int64_t coord_t;
#define POINT2(i) (wall[wall[i].point2])
#include "maptypes.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;
inline int32_t ksqrt(uint64_t num)
{
return int(sqrt(double(num)));
}
#endif // build_h_