Skip to content

Commit d6ee7a1

Browse files
Zegeriq4a
authored andcommitted
Fix some includes, template issues and other stuff when DEBUG is on
1 parent e05f7bd commit d6ee7a1

File tree

19 files changed

+41
-47
lines changed

19 files changed

+41
-47
lines changed

src/xrAICore/Components/problem_solver_inline.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,12 @@ IC void CProblemSolverAbstract::add_operator(const _operator_id_type& operator_i
9090
TEMPLATE_SPECIALIZATION
9191
IC void CProblemSolverAbstract::validate_properties(const CState& conditions) const
9292
{
93-
xr_vector<_operator_condition>::const_iterator I = conditions.conditions().begin();
94-
xr_vector<_operator_condition>::const_iterator E = conditions.conditions().end();
95-
for (; I != E; ++I)
93+
for (const auto& cond : conditions.conditions())
9694
{
97-
if (evaluators().find((*I).condition()) == evaluators().end())
95+
if (evaluators().find(cond.condition()) == evaluators().end())
9896
{
99-
Msg("! cannot find corresponding evaluator to the property with id %d", (*I).condition());
100-
THROW(evaluators().find((*I).condition()) != evaluators().end());
97+
Msg("! cannot find corresponding evaluator to the property with id %d", cond.condition());
98+
THROW(evaluators().find(cond.condition()) != evaluators().end());
10199
}
102100
}
103101
}

src/xrCDB/ISpatial.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include "xrEngine/Render.h"
55
#ifdef DEBUG
66
#include "xrEngine/xr_object.h"
7-
#include "xrEngine/PS_Instance.h"
7+
#include "xrEngine/PS_instance.h"
88
#endif
99
#include "xrEngine/device.h"
1010
#include "xrEngine/GameFont.h"

src/xrCore/LocatorAPI_auth.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ void CLocatorAPI::auth_runtime(void* params)
107107
{
108108
string64 c_auth_code;
109109
sscanf(strstr(Core.Params, "asdf ") + 5, "%[^ ] ", c_auth_code);
110-
m_auth_code = _atoi64(c_auth_code);
110+
m_auth_code = atoll(c_auth_code);
111111
}
112112
#endif // DEBUG
113113
xr_delete(_o);

src/xrEngine/xr_collide_form.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ IC float DET(const Fmatrix& a)
1616
return ((a._11 * (a._22 * a._33 - a._23 * a._32) - a._12 * (a._21 * a._33 - a._23 * a._31) +
1717
a._13 * (a._21 * a._32 - a._22 * a._31)));
1818
}
19-
#include "objectdump.h"
19+
#include "ObjectDump.h"
2020
#endif
2121
using namespace collide;
2222
//----------------------------------------------------------------------

src/xrGame/ElevatorState.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include "MathUtils.h"
66
#include "xrPhysics/PHWorld.h"
77
#ifdef DEBUG
8-
#include "../xrEngine/Statgraph.h"
8+
#include "../xrEngine/StatGraph.h"
99
#include "PHDebug.h"
1010
#endif
1111
static const float getting_on_dist = 0.3f;

src/xrGame/PHDebug.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include "Include/xrRender/Kinematics.h"
1919
#include "Include/xrRender/KinematicsAnimated.h"
2020
#include "xrCore/Animation/Bone.hpp"
21-
#include "xrEngine/iphdebug.h"
21+
#include "xrEngine/IPHdebug.h"
2222
#include "xrCore/xr_token.h"
2323
#include "xrEngine/GameFont.h"
2424

@@ -707,8 +707,8 @@ static LPCSTR name_bool(BOOL v)
707707

708708
static LPCSTR name_blend_type(CBlend::ECurvature blend)
709709
{
710-
static xr_token token_blend[] = {{"eFREE_SLOT", CBlend::eFREE_SLOT}, {"eAccrue", CBlend::eAccrue},
711-
{"eFalloff", CBlend::eFalloff}, {"eFORCEDWORD", CBlend::eFORCEDWORD}};
710+
static xr_token token_blend[] = {{"eFREE_SLOT", int(CBlend::eFREE_SLOT)}, {"eAccrue", int(CBlend::eAccrue)},
711+
{"eFalloff", int(CBlend::eFalloff)}, {"eFORCEDWORD", int(CBlend::eFORCEDWORD)}};
712712
return get_token_name(token_blend, blend);
713713
}
714714
/*

src/xrGame/PhysicObject.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include "xrPhysics/ExtendedGeom.h"
1616
#ifdef DEBUG
1717
#include "PHDebug.h"
18-
#include "xrEngine/objectdump.h"
18+
#include "xrEngine/ObjectDump.h"
1919
#endif
2020
BOOL dbg_draw_doors = false;
2121
CPhysicObject::CPhysicObject(void)

src/xrGame/PhysicsShellHolder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "PHCollisionDamageReceiver.h"
2121
#include "xrEngine/IPhysicsShell.h"
2222
#ifdef DEBUG
23-
#include "xrEngine/objectdump.h"
23+
#include "xrEngine/ObjectDump.h"
2424
#endif
2525
CPhysicsShellHolder::CPhysicsShellHolder() { init(); }
2626
CPhysicsShellHolder::~CPhysicsShellHolder()

src/xrGame/WeaponMagazined.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ void CWeaponMagazined::switch2_Idle()
695695
}
696696

697697
#ifdef DEBUG
698-
#include "ai\stalker\ai_stalker.h"
698+
#include "ai/stalker/ai_stalker.h"
699699
#include "object_handler_planner.h"
700700
#endif
701701
void CWeaponMagazined::switch2_Fire()

src/xrGame/ai/monsters/basemonster/base_monster.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ class CBaseMonster : public CCustomMonster, public CStepManager
427427
#ifdef DEBUG
428428

429429
template <class Type>
430-
bool get_debug_var(pcstr var_name, OUT Type& result);
430+
bool get_debug_var(pcstr var_name, Type& result);
431431

432432
public:
433433
struct SDebugInfo
@@ -593,7 +593,7 @@ class CBaseMonster : public CCustomMonster, public CStepManager
593593

594594
#ifdef DEBUG
595595
template <class Type>
596-
bool CBaseMonster::get_debug_var(pcstr var_name, OUT Type& result)
596+
bool CBaseMonster::get_debug_var(pcstr var_name, Type& result)
597597
{
598598
char* full_var_name;
599599
STRCONCAT(full_var_name, get_monster_class_name(), "_", var_name);

0 commit comments

Comments
 (0)