refactor: clang-tidy source a little

build: remove -fPIC option
This commit is contained in:
dmitry 2021-09-16 16:09:51 +03:00
commit f051fe2b99
No known key found for this signature in database
GPG key ID: 8297CE728B7A7E37
13 changed files with 88 additions and 94 deletions

View file

@ -152,7 +152,7 @@ public:
void testLine (const Vector &start, const Vector &end, int ignoreFlags, edict_t *ignoreEntity, TraceResult *ptr);
// trace line with channel, but allows us to store last traceline bot has fired, saving us some cpu cycles
bool testLineChannel (TraceChannel channel, const Vector &start, const Vector &end, int ignoreFlags, edict_t *ignoreEntity, TraceResult *ptr);
bool testLineChannel (TraceChannel channel, const Vector &start, const Vector &end, int ignoreFlags, edict_t *ignoreEntity, TraceResult &result);
// test line
void testHull (const Vector &start, const Vector &end, int ignoreFlags, int hullNumber, edict_t *ignoreEntity, TraceResult *ptr);
@ -170,7 +170,7 @@ public:
const char *getMapName ();
// get the "any" entity origin
Vector getEntityWorldOrigin (edict_t *ent);
Vector getEntityOrigin (edict_t *ent);
// registers a server command
void registerEngineCommand (const char *command, void func ());
@ -574,7 +574,7 @@ public:
public:
template <typename T> T read () {
T result;
T result {};
auto size = sizeof (T);
if (m_cursor + size > m_buffer.length ()) {

View file

@ -1137,8 +1137,8 @@ public:
}
// get the bot last trace result
TraceResult *getLastTraceResult (TraceChannel channel) {
return &m_lastTrace[channel];
TraceResult &getLastTraceResult (TraceChannel channel) {
return m_lastTrace[channel];
}
// prints debug message
@ -1171,6 +1171,18 @@ extern ConVar cv_quota;
extern ConVar cv_difficulty;
extern ConVar cv_attack_monsters;
extern ConVar cv_pickup_custom_items;
extern ConVar cv_economics_rounds;
extern ConVar cv_shoots_thru_walls;
extern ConVar cv_debug;
extern ConVar cv_debug_goal;
extern ConVar mp_freezetime;
extern ConVar mp_roundtime;
extern ConVar mp_timelimit;
extern ConVar mp_limitteams;
extern ConVar mp_autoteambalance;
extern ConVar mp_footsteps;
extern ConVar mp_startmoney;
// execute client command helper
template <typename ...Args> void Bot::issueCommand (const char *fmt, Args &&...args) {