2007-09-05 21:56:58 +00:00
|
|
|
// "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
|
2012-03-12 04:47:04 +00:00
|
|
|
// by Jonathon Fowler (jf@jonof.id.au)
|
2018-11-05 07:28:01 +00:00
|
|
|
// by the EDuke32 team (development@voidpoint.com)
|
2007-09-05 21:56:58 +00:00
|
|
|
|
2016-03-14 00:07:44 +00:00
|
|
|
#pragma once
|
2007-09-05 21:56:58 +00:00
|
|
|
|
2014-11-22 12:32:56 +00:00
|
|
|
#ifndef build_h_
|
|
|
|
#define build_h_
|
2007-09-05 21:56:58 +00:00
|
|
|
|
2020-05-28 08:31:08 +02:00
|
|
|
#define TRANSPARENT_INDEX 0
|
2020-04-12 00:04:02 +02:00
|
|
|
|
2019-10-16 23:09:02 +02:00
|
|
|
static_assert('\xff' == 255, "Char must be unsigned!");
|
|
|
|
|
2021-05-03 19:16:26 +02:00
|
|
|
#include "printf.h"
|
2016-06-21 00:33:06 +00:00
|
|
|
#include "palette.h"
|
2020-05-24 07:58:56 +02:00
|
|
|
#include "buildtiles.h"
|
2019-10-23 21:11:37 +02:00
|
|
|
#include "c_cvars.h"
|
2020-04-11 23:39:40 +02:00
|
|
|
#include "cmdlib.h"
|
2019-03-01 08:51:50 +00:00
|
|
|
|
2020-03-29 14:55:09 +02:00
|
|
|
typedef int64_t coord_t;
|
|
|
|
|
2019-04-18 17:24:26 +00:00
|
|
|
#define POINT2(i) (wall[wall[i].point2])
|
|
|
|
|
2011-02-15 21:02:43 +00:00
|
|
|
|
2021-12-17 20:24:48 +01:00
|
|
|
#include "maptypes.h"
|
2017-01-05 05:29:11 +00:00
|
|
|
#include "clip.h"
|
|
|
|
|
2019-09-23 04:26:07 +09:00
|
|
|
enum {
|
|
|
|
ENGINECOMPATIBILITY_NONE = 0,
|
|
|
|
ENGINECOMPATIBILITY_19950829, // Powerslave/Exhumed
|
|
|
|
ENGINECOMPATIBILITY_19960925, // Blood v1.21
|
|
|
|
ENGINECOMPATIBILITY_19961112, // Duke 3d v1.5, Redneck Rampage
|
|
|
|
};
|
|
|
|
|
2022-09-25 12:26:37 +02:00
|
|
|
inline int32_t enginecompatibility_mode;
|
2009-07-24 02:31:34 +00:00
|
|
|
|
2015-09-23 17:54:50 +00:00
|
|
|
|
2021-05-12 01:29:18 +02:00
|
|
|
inline int32_t ksqrt(uint64_t num)
|
2021-03-14 23:38:39 +01:00
|
|
|
{
|
2021-05-12 01:29:18 +02:00
|
|
|
return int(sqrt(double(num)));
|
2021-03-14 23:38:39 +01:00
|
|
|
}
|
|
|
|
|
2014-11-22 12:32:56 +00:00
|
|
|
#endif // build_h_
|