mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-25 05:21:28 +00:00
Get floor height offset correct for each game
This commit is contained in:
parent
fa74cf0559
commit
16299b3f8a
3 changed files with 11 additions and 3 deletions
|
@ -51,6 +51,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
#include "tilesetbuilder.h"
|
||||
#include "nnexts.h"
|
||||
|
||||
extern int playerHeight; //Used to define player height for VR
|
||||
|
||||
BEGIN_BLD_NS
|
||||
|
||||
|
||||
|
@ -604,6 +606,8 @@ void GameInterface::app_init()
|
|||
{
|
||||
mirrortile = tileGetTextureID(504);
|
||||
|
||||
playerHeight = 60;
|
||||
|
||||
GC::AddMarkerFunc(markgcroots);
|
||||
|
||||
InitCheats();
|
||||
|
|
|
@ -52,6 +52,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
#include "tilesetbuilder.h"
|
||||
#include "psky.h"
|
||||
|
||||
extern int playerHeight; //Used to define player height for VR
|
||||
|
||||
|
||||
BEGIN_PS_NS
|
||||
|
||||
TObjPtr<DExhumedActor*> bestTarget;
|
||||
|
@ -568,12 +571,11 @@ void GameInterface::SetupSpecialTextures(TilesetBuildInfo& info)
|
|||
//
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
void GameInterface::app_init()
|
||||
{
|
||||
GC::AddMarkerFunc(markgcroots);
|
||||
|
||||
|
||||
playerHeight = 58;
|
||||
#if 0
|
||||
help_disabled = true;
|
||||
#endif
|
||||
|
|
|
@ -86,6 +86,7 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms
|
|||
#include "interpolate.h"
|
||||
|
||||
//#include "crc32.h"
|
||||
extern int playerHeight; //Used to define player height for VR
|
||||
|
||||
CVAR(Bool, sw_ninjahack, false, CVAR_ARCHIVE /*| CVAR_SERVERINFO*/);
|
||||
CVAR(Bool, sw_darts, false, CVAR_ARCHIVE);
|
||||
|
@ -249,7 +250,6 @@ void GameInterface::SetupSpecialTextures(TilesetBuildInfo& info)
|
|||
//
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
void GameInterface::app_init()
|
||||
{
|
||||
// these are frequently checked markers.
|
||||
|
@ -306,6 +306,8 @@ void GameInterface::app_init()
|
|||
|
||||
userConfig.AddDefs.reset();
|
||||
InitFX();
|
||||
|
||||
playerHeight = 58;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue