Cosmetic changes.
This commit is contained in:
parent
a0e770c6ea
commit
bbaac860dd
7 changed files with 78 additions and 54 deletions
|
|
@ -93,8 +93,13 @@ public:
|
|||
};
|
||||
auto timeouts = getTimeouts ();
|
||||
|
||||
setsockopt (m_socket, SOL_SOCKET, SO_RCVTIMEO, timeouts.first, timeouts.second);
|
||||
setsockopt (m_socket, SOL_SOCKET, SO_SNDTIMEO, timeouts.first, timeouts.second);
|
||||
if (setsockopt (m_socket, SOL_SOCKET, SO_RCVTIMEO, timeouts.first, timeouts.second) < 1) {
|
||||
logger.error ("Unable to set SO_RCVTIMEO.");
|
||||
}
|
||||
|
||||
if (setsockopt (m_socket, SOL_SOCKET, SO_SNDTIMEO, timeouts.first, timeouts.second) < 1) {
|
||||
logger.error ("Unable to set SO_SNDTIMEO.");
|
||||
}
|
||||
|
||||
sockaddr_in dest;
|
||||
memset (&dest, 0, sizeof (dest));
|
||||
|
|
|
|||
|
|
@ -784,11 +784,11 @@ private:
|
|||
int m_reloadState; // current reload state
|
||||
int m_voicePitch; // bot voice pitch
|
||||
int m_rechoiceGoalCount; // multiple failed goals?
|
||||
int m_loosedBombWptIndex; // nearest to loosed bomb node
|
||||
int m_plantedBombWptIndex; // nearest to planted bomb node
|
||||
int m_loosedBombNodeIndex; // nearest to loosed bomb node
|
||||
int m_plantedBombNodeIndex; // nearest to planted bomb node
|
||||
int m_currentNodeIndex; // current node index
|
||||
int m_travelStartIndex; // travel start index to double jump action
|
||||
int m_prevWptIndex[5]; // previous node indices from node find
|
||||
int m_previousNodes[5]; // previous node indices from node find
|
||||
int m_pathFlags; // current node flags
|
||||
int m_needAvoidGrenade; // which direction to strafe away
|
||||
int m_campDirection; // camp Facing direction
|
||||
|
|
@ -1450,11 +1450,16 @@ public:
|
|||
}
|
||||
|
||||
void setLastRadioTimestamp (const int team, const float timestamp) {
|
||||
m_lastRadioTime[team] = timestamp;
|
||||
if (team == Team::CT || team == Team::Terrorist) {
|
||||
m_lastRadioTime[team] = timestamp;
|
||||
}
|
||||
}
|
||||
|
||||
float getLastRadioTimestamp (const int team) const {
|
||||
return m_lastRadioTime[team];
|
||||
if (team == Team::CT || team == Team::Terrorist) {
|
||||
return m_lastRadioTime[team];
|
||||
}
|
||||
return 0.0f;
|
||||
}
|
||||
|
||||
void setLastRadio (const int team, const int radio) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue