Skip to content

Commit

Permalink
common: enginefeatures: sync header with engine tree, rename from xas…
Browse files Browse the repository at this point in the history
…h3d_features.h
  • Loading branch information
a1batross authored and SNMetamorph committed May 29, 2024
1 parent 3d2164d commit d7965b2
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/parsemsg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "utils.h"
#include "gl_local.h"
#include "pm_movevars.h"
#include "xash3d_features.h"
#include "enginefeatures.h"

static byte *gpBuf;
static const char *gpszName;
Expand Down
2 changes: 1 addition & 1 deletion client/render/gl_local.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ GNU General Public License for more details.
#include "cl_dlight.h"
#include "cl_entity.h"
#include "texture_handle.h"
#include "xash3d_features.h"
#include "enginefeatures.h"
#include <utlarray.h>
#include "vector.h"
#include <matrix.h>
Expand Down
2 changes: 1 addition & 1 deletion client/render/r_weather.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ GNU General Public License for more details.
#include "triangleapi.h"
#include "custom_alloc.h"
#include "parsemsg.h"
#include "xash3d_features.h"
#include "enginefeatures.h"
#include "r_weather.h"
#include "gl_local.h"
#include "gl_debug.h"
Expand Down
15 changes: 15 additions & 0 deletions common/xash3d_features.h → common/enginefeatures.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,19 @@ GNU General Public License for more details.
#define ENGINE_COMPUTE_STUDIO_LERP (1<<7) // enable MOVETYPE_STEP lerping back in engine
#define ENGINE_LINEAR_GAMMA_SPACE (1<<8) // disable influence of gamma/brightness cvars to textures/lightmaps, for mods with custom renderer

#define ENGINE_STEP_POSHISTORY_LERP (1U<<31) // enable MOVETYPE_STEP interpolation based on position history. Incompatible with ENGINE_COMPUTE_STUDIO_LERP!

// adjust the mask when features will be added or removed
#define ENGINE_FEATURES_MASK \
( ENGINE_WRITE_LARGE_COORD \
| ENGINE_QUAKE_COMPATIBLE \
| ENGINE_LOAD_DELUXEDATA \
| ENGINE_PHYSICS_PUSHER_EXT \
| ENGINE_LARGE_LIGHTMAPS \
| ENGINE_COMPENSATE_QUAKE_BUG \
| ENGINE_IMPROVED_LINETRACE \
| ENGINE_COMPUTE_STUDIO_LERP \
| ENGINE_LINEAR_GAMMA_SPACE \
| ENGINE_STEP_POSHISTORY_LERP )

#endif//FEATURES_H
2 changes: 1 addition & 1 deletion server/physic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ GNU General Public License for more details.
#include "com_model.h"
#include "studio.h"
#include "movelist.h"
#include "xash3d_features.h"
#include "enginefeatures.h"
#include "render_api.h"
#include "physic.h"
#include "triangleapi.h"
Expand Down

0 comments on commit d7965b2

Please sign in to comment.