Skip to content

Commit 37b7b48

Browse files
committed
xrGame: fix some templates for linux build
1 parent 1d4e485 commit 37b7b48

File tree

11 files changed

+25
-25
lines changed

11 files changed

+25
-25
lines changed

src/xrAICore/Components/problem_solver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ class CProblemSolver
3333
typedef _operator COperator;
3434
typedef _condition_state CState;
3535
typedef _condition_evaluator CConditionEvaluator;
36+
typedef _operator_ptr operator_ptr;
3637
#ifdef WINDOWS
37-
typedef _operator_ptr _operator_ptr;
3838
typedef _condition_evaluator_ptr _condition_evaluator_ptr;
3939
#endif
4040
typedef typename _operator_condition::condition_type condition_type;

src/xrGame/action_planner.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ class CActionPlanner
3434
using _condition_type = typename CProblemSolver::condition_type;
3535
using _edge_type = typename CProblemSolver::edge_type;
3636
using _value_type = typename CProblemSolver::value_type;
37-
using _operator_ptr = typename CProblemSolver::_operator_ptr;
37+
using _operator_ptr = typename CProblemSolver::operator_ptr;
3838
typedef CProblemSolver inherited;
3939
typedef typename inherited::edge_type _action_id_type;
4040
typedef GraphEngineSpace::CWorldProperty CWorldProperty;
4141
typedef GraphEngineSpace::CWorldState CWorldState;
42-
typedef _world_operator _world_operator;
42+
typedef _world_operator world_operator;
4343

4444
protected:
4545
bool m_initialized;

src/xrGame/action_planner_action.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class CActionPlannerAction : public CActionPlanner<_object_type>, public CAction
2525

2626
public:
2727
using COperatorCondition = typename inherited_action::COperatorCondition;
28-
using _world_operator = typename inherited_planner::_world_operator;
28+
using _world_operator = typename inherited_planner::world_operator;
2929

3030
#ifdef LOG_ACTION
3131
public:

src/xrGame/ai/stalker/ai_stalker.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ typedef CActionPlanner<CScriptGameObject, false, CActionBase<CScriptGameObject>,
3131
namespace MonsterSpace
3232
{
3333
enum EMovementDirection;
34-
};
34+
}
3535

3636
namespace StalkerSpace
3737
{
3838
enum EBodyAction;
39-
};
39+
}
4040

4141
namespace smart_cover
4242
{
@@ -46,8 +46,8 @@ class loophole;
4646
namespace transitions
4747
{
4848
class action;
49-
};
50-
};
49+
}
50+
}
5151

5252
enum ECriticalWoundType;
5353

@@ -321,8 +321,8 @@ class CAI_Stalker : public CCustomMonster, public CObjectHandler, public CAI_Phr
321321
bool m_can_select_weapon;
322322

323323
public:
324-
bool can_select_weapon() { return m_can_select_weapon; };
325-
void can_select_weapon(bool can) { m_can_select_weapon = can; };
324+
bool can_select_weapon() { return m_can_select_weapon; }
325+
void can_select_weapon(bool can) { m_can_select_weapon = can; }
326326
bool can_take(CInventoryItem const* item);
327327

328328
protected:

src/xrGame/alife_abstract_registry.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class CALifeAbstractRegistry : public ISerializable
2323
OBJECT_REGISTRY m_objects;
2424

2525
public:
26-
typedef typename _data_type _data;
26+
typedef _data_type _data;
2727

2828
IC CALifeAbstractRegistry();
2929
virtual ~CALifeAbstractRegistry();

src/xrGame/game_cl_mp.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ class game_cl_mp : public game_cl_GameState
294294
u32 m_max_size;
295295
game_cl_mp* m_owner;
296296
CMemoryWriter m_writer;
297-
fr_callback_binder() : m_frnode(NULL), m_active(false){};
297+
fr_callback_binder() : m_frnode(NULL), m_active(false){}
298298
void __stdcall receiving_file_callback(
299299
file_transfer::receiving_status_t status, u32 bytes_received, u32 data_size);
300300
void __stdcall receiving_serverinfo_callback(
@@ -316,8 +316,8 @@ class game_cl_mp : public game_cl_GameState
316316
bool m_ready_to_open_buy_menu;
317317

318318
public:
319-
bool is_buy_menu_ready() const { return m_ready_to_open_buy_menu; };
320-
void set_buy_menu_not_ready() { m_ready_to_open_buy_menu = false; };
319+
bool is_buy_menu_ready() const { return m_ready_to_open_buy_menu; }
320+
void set_buy_menu_not_ready() { m_ready_to_open_buy_menu = false; }
321321
void decompress_and_save_screenshot(LPCSTR file_name, u8* data, u32 data_size, u32 file_size);
322322
void decompress_and_process_config(LPCSTR file_name, u8* data, u32 data_size, u32 file_size);
323323

src/xrGame/ini_id_loader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ CSINI_IdToIndex::~CIni_IdToIndex() {}
112112
TEMPLATE_SPECIALIZATION
113113
const ITEM_DATA* CSINI_IdToIndex::GetById(const T_ID& str_id, bool no_assert)
114114
{
115-
T_VECTOR::iterator it;
115+
typename T_VECTOR::iterator it;
116116
for (it = m_pItemDataVector->begin(); m_pItemDataVector->end() != it; it++)
117117
{
118118
if (!xr_strcmp((*it).id, str_id))

src/xrGame/restricted_object.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class CGameObject;
1717
namespace RestrictionSpace
1818
{
1919
enum ERestrictorTypes;
20-
};
20+
}
2121

2222
template <bool add>
2323
struct CRestrictionPredicate;

src/xrGame/script_game_object.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ struct CVisibleObject;
6363
struct CSoundObject;
6464
struct CHitObject;
6565
struct CNotYetVisibleObject;
66-
};
66+
}
6767

6868
namespace MonsterSpace
6969
{
@@ -82,12 +82,12 @@ enum EScriptSoundAnim;
8282
enum EMonsterSounds;
8383
enum EMonsterHeadAnimType;
8484
struct SBoneRotation;
85-
};
85+
}
8686

8787
namespace GameObject
8888
{
8989
enum ECallbackType;
90-
};
90+
}
9191

9292
class CGameObject;
9393
class CScriptHit;
@@ -320,7 +320,7 @@ class CScriptGameObject
320320
void GiveGameNews(LPCSTR caption, LPCSTR news, LPCSTR texture_name, int delay, int show_time);
321321
void GiveGameNews(LPCSTR caption, LPCSTR news, LPCSTR texture_name, int delay, int show_time, int type);
322322

323-
void AddIconedTalkMessage_old(LPCSTR text, LPCSTR texture_name, LPCSTR templ_name){};
323+
void AddIconedTalkMessage_old(LPCSTR text, LPCSTR texture_name, LPCSTR templ_name){}
324324
void AddIconedTalkMessage(LPCSTR caption, LPCSTR text, LPCSTR texture_name, LPCSTR templ_name);
325325
//предикаты наличия/отсутствия порции информации у персонажа
326326
bool HasInfo(LPCSTR info_id);

src/xrGame/stalker_movement_params.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,23 @@ enum EBodyState;
1616
enum EMovementType;
1717
enum EMentalState;
1818
enum EPathType;
19-
};
19+
}
2020

2121
namespace MovementManager
2222
{
2323
enum EPathType;
24-
};
24+
}
2525

2626
namespace DetailPathManager
2727
{
2828
enum EDetailPathType;
29-
};
29+
}
3030

3131
namespace smart_cover
3232
{
3333
class cover;
3434
class loophole;
35-
};
35+
}
3636

3737
class CGameObject;
3838
class stalker_movement_manager_smart_cover;

0 commit comments

Comments
 (0)