Skip to content

Commit

Permalink
xrGame: fix some templates for linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleivg committed Aug 24, 2018
1 parent 1d4e485 commit 37b7b48
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion src/xrAICore/Components/problem_solver.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ class CProblemSolver
typedef _operator COperator;
typedef _condition_state CState;
typedef _condition_evaluator CConditionEvaluator;
typedef _operator_ptr operator_ptr;
#ifdef WINDOWS
typedef _operator_ptr _operator_ptr;
typedef _condition_evaluator_ptr _condition_evaluator_ptr;
#endif
typedef typename _operator_condition::condition_type condition_type;
Expand Down
4 changes: 2 additions & 2 deletions src/xrGame/action_planner.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ class CActionPlanner
using _condition_type = typename CProblemSolver::condition_type;
using _edge_type = typename CProblemSolver::edge_type;
using _value_type = typename CProblemSolver::value_type;
using _operator_ptr = typename CProblemSolver::_operator_ptr;
using _operator_ptr = typename CProblemSolver::operator_ptr;
typedef CProblemSolver inherited;
typedef typename inherited::edge_type _action_id_type;
typedef GraphEngineSpace::CWorldProperty CWorldProperty;
typedef GraphEngineSpace::CWorldState CWorldState;
typedef _world_operator _world_operator;
typedef _world_operator world_operator;

protected:
bool m_initialized;
Expand Down
2 changes: 1 addition & 1 deletion src/xrGame/action_planner_action.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class CActionPlannerAction : public CActionPlanner<_object_type>, public CAction

public:
using COperatorCondition = typename inherited_action::COperatorCondition;
using _world_operator = typename inherited_planner::_world_operator;
using _world_operator = typename inherited_planner::world_operator;

#ifdef LOG_ACTION
public:
Expand Down
12 changes: 6 additions & 6 deletions src/xrGame/ai/stalker/ai_stalker.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ typedef CActionPlanner<CScriptGameObject, false, CActionBase<CScriptGameObject>,
namespace MonsterSpace
{
enum EMovementDirection;
};
}

namespace StalkerSpace
{
enum EBodyAction;
};
}

namespace smart_cover
{
Expand All @@ -46,8 +46,8 @@ class loophole;
namespace transitions
{
class action;
};
};
}
}

enum ECriticalWoundType;

Expand Down Expand Up @@ -321,8 +321,8 @@ class CAI_Stalker : public CCustomMonster, public CObjectHandler, public CAI_Phr
bool m_can_select_weapon;

public:
bool can_select_weapon() { return m_can_select_weapon; };
void can_select_weapon(bool can) { m_can_select_weapon = can; };
bool can_select_weapon() { return m_can_select_weapon; }
void can_select_weapon(bool can) { m_can_select_weapon = can; }
bool can_take(CInventoryItem const* item);

protected:
Expand Down
2 changes: 1 addition & 1 deletion src/xrGame/alife_abstract_registry.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class CALifeAbstractRegistry : public ISerializable
OBJECT_REGISTRY m_objects;

public:
typedef typename _data_type _data;
typedef _data_type _data;

IC CALifeAbstractRegistry();
virtual ~CALifeAbstractRegistry();
Expand Down
6 changes: 3 additions & 3 deletions src/xrGame/game_cl_mp.h
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ class game_cl_mp : public game_cl_GameState
u32 m_max_size;
game_cl_mp* m_owner;
CMemoryWriter m_writer;
fr_callback_binder() : m_frnode(NULL), m_active(false){};
fr_callback_binder() : m_frnode(NULL), m_active(false){}
void __stdcall receiving_file_callback(
file_transfer::receiving_status_t status, u32 bytes_received, u32 data_size);
void __stdcall receiving_serverinfo_callback(
Expand All @@ -316,8 +316,8 @@ class game_cl_mp : public game_cl_GameState
bool m_ready_to_open_buy_menu;

public:
bool is_buy_menu_ready() const { return m_ready_to_open_buy_menu; };
void set_buy_menu_not_ready() { m_ready_to_open_buy_menu = false; };
bool is_buy_menu_ready() const { return m_ready_to_open_buy_menu; }
void set_buy_menu_not_ready() { m_ready_to_open_buy_menu = false; }
void decompress_and_save_screenshot(LPCSTR file_name, u8* data, u32 data_size, u32 file_size);
void decompress_and_process_config(LPCSTR file_name, u8* data, u32 data_size, u32 file_size);

Expand Down
2 changes: 1 addition & 1 deletion src/xrGame/ini_id_loader.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ CSINI_IdToIndex::~CIni_IdToIndex() {}
TEMPLATE_SPECIALIZATION
const ITEM_DATA* CSINI_IdToIndex::GetById(const T_ID& str_id, bool no_assert)
{
T_VECTOR::iterator it;
typename T_VECTOR::iterator it;
for (it = m_pItemDataVector->begin(); m_pItemDataVector->end() != it; it++)
{
if (!xr_strcmp((*it).id, str_id))
Expand Down
2 changes: 1 addition & 1 deletion src/xrGame/restricted_object.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class CGameObject;
namespace RestrictionSpace
{
enum ERestrictorTypes;
};
}

template <bool add>
struct CRestrictionPredicate;
Expand Down
8 changes: 4 additions & 4 deletions src/xrGame/script_game_object.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ struct CVisibleObject;
struct CSoundObject;
struct CHitObject;
struct CNotYetVisibleObject;
};
}

namespace MonsterSpace
{
Expand All @@ -82,12 +82,12 @@ enum EScriptSoundAnim;
enum EMonsterSounds;
enum EMonsterHeadAnimType;
struct SBoneRotation;
};
}

namespace GameObject
{
enum ECallbackType;
};
}

class CGameObject;
class CScriptHit;
Expand Down Expand Up @@ -320,7 +320,7 @@ class CScriptGameObject
void GiveGameNews(LPCSTR caption, LPCSTR news, LPCSTR texture_name, int delay, int show_time);
void GiveGameNews(LPCSTR caption, LPCSTR news, LPCSTR texture_name, int delay, int show_time, int type);

void AddIconedTalkMessage_old(LPCSTR text, LPCSTR texture_name, LPCSTR templ_name){};
void AddIconedTalkMessage_old(LPCSTR text, LPCSTR texture_name, LPCSTR templ_name){}
void AddIconedTalkMessage(LPCSTR caption, LPCSTR text, LPCSTR texture_name, LPCSTR templ_name);
//предикаты наличия/отсутствия порции информации у персонажа
bool HasInfo(LPCSTR info_id);
Expand Down
8 changes: 4 additions & 4 deletions src/xrGame/stalker_movement_params.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,23 @@ enum EBodyState;
enum EMovementType;
enum EMentalState;
enum EPathType;
};
}

namespace MovementManager
{
enum EPathType;
};
}

namespace DetailPathManager
{
enum EDetailPathType;
};
}

namespace smart_cover
{
class cover;
class loophole;
};
}

class CGameObject;
class stalker_movement_manager_smart_cover;
Expand Down
2 changes: 1 addition & 1 deletion src/xrServerEntities/restriction_space.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ enum ERestrictorTypes
eRestrictorTypeIn = u8(4),
eRestrictorTypeOut = u8(5),
};
}; // namespace RestrictionSpace
} // namespace RestrictionSpace

0 comments on commit 37b7b48

Please sign in to comment.