- Rename binaryangle.h to fixedhorizon.h and sanitise places where previous header was included.

This commit is contained in:
Mitchell Richters 2022-08-28 12:57:47 +10:00 committed by Christoph Oelckers
parent 442d1f3bd3
commit 3de1d2156d
8 changed files with 7 additions and 10 deletions

View file

@ -17,7 +17,6 @@ static_assert('\xff' == 255, "Char must be unsigned!");
#include "printf.h"
#include "palette.h"
#include "binaryangle.h"
//Make all variables in BUILD.H defined in the ENGINE,
//and externed in GAME

View file

@ -1,11 +1,10 @@
/*
** binaryangle.h
** fixedhorizon.h
**
** type safe representations of high precision angle and horizon values.
** Angle uses natural 32 bit overflow to clamp to one rotation.
** type safe representations of high precision horizon values.
**
**---------------------------------------------------------------------------
** Copyright 2020 Christoph Oelckers
** Copyright 2020-2022 Christoph Oelckers
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without

View file

@ -1,7 +1,6 @@
#pragma once
#include "gamecontrol.h"
#include "binaryangle.h"
#include "build.h"
#include "coreactor.h"
#include "intrect.h"

View file

@ -1,7 +1,7 @@
#pragma once
#include "m_fixed.h"
#include "binaryangle.h"
#include "fixedhorizon.h"
#include "interphelpers.h"
#include "gamecvars.h"
#include "gamestruct.h"

View file

@ -7,7 +7,7 @@ bool System_WantGuiCapture(); // During playing this tells us whether the game m
#include "engineerrors.h"
#include "stats.h"
#include "packet.h"
#include "binaryangle.h"
#include "fixedhorizon.h"
#include "inputstate.h"
#include "maptypes.h"

View file

@ -35,6 +35,8 @@
#pragma once
#include "fixedhorizon.h"
inline constexpr int32_t interpolatedvalue(int32_t oval, int32_t val, double const smoothratio, int const scale = 16)
{
return oval + MulScale(val - oval, int(smoothratio), scale);

View file

@ -31,7 +31,6 @@ Prepared for public release: 03/21/2003 - Charlie Wiederhold, 3D Realms
#include "tarray.h"
#include "tflags.h"
#include "intvec.h"
#include "binaryangle.h"
#include "dobject.h"
void MarkVerticesForSector(int sector);

View file

@ -5,7 +5,6 @@
#include "memarena.h"
#include "basics.h"
#include "vectors.h"
#include "binaryangle.h"
#include "intvec.h"
class ClipNode