Typos fixes.

This commit is contained in:
jeefo 2019-08-07 15:25:14 +03:00
commit c090ca3c54
4 changed files with 8 additions and 9 deletions

View file

@ -1301,7 +1301,6 @@ private:
Array <edict_t *> m_activeGrenades; // holds currently active grenades on the map Array <edict_t *> m_activeGrenades; // holds currently active grenades on the map
Array <edict_t *> m_intrestingEntities; // holds currently intresting entities on the map Array <edict_t *> m_intrestingEntities; // holds currently intresting entities on the map
SmallArray <CreateQueue> m_creationTab; // bot creation tab SmallArray <CreateQueue> m_creationTab; // bot creation tab
SmallArray <BotTask> m_filters; // task filters SmallArray <BotTask> m_filters; // task filters
SmallArray <UniqueBot> m_bots; // all available bots SmallArray <UniqueBot> m_bots; // all available bots
@ -1640,7 +1639,7 @@ public:
void setDangerValue (int team, int start, int goal, int value); void setDangerValue (int team, int start, int goal, int value);
void setDangerDamage (int team, int start, int goal, int value); void setDangerDamage (int team, int start, int goal, int value);
void convertFromPOD (Path &path, const PODPath &pod); void convertFromPOD (Path &path, const PODPath &pod);
void converToPOD (const Path &path, PODPath &pod); void convertToPOD (const Path &path, PODPath &pod);
void convertCampDirection (Path &path); void convertCampDirection (Path &path);
const char *getDataDirectory (bool isMemoryFile = false); const char *getDataDirectory (bool isMemoryFile = false);

View file

@ -147,7 +147,7 @@ int BotControl::cmdWeaponMode () {
modes.push ("smg", 4); modes.push ("smg", 4);
modes.push ("rifle", 5); modes.push ("rifle", 5);
modes.push ("sniper", 6); modes.push ("sniper", 6);
modes.push ("stanard", 7); modes.push ("standard", 7);
auto mode = getStr (type); auto mode = getStr (type);

View file

@ -928,7 +928,7 @@ void BotGraph::pathCreate (char dir) {
nodeTo = m_cacheNodeIndex; nodeTo = m_cacheNodeIndex;
} }
else { else {
ctrl.msg ("Unable to find destination node"); ctrl.msg ("Unable to find destination node.");
return; return;
} }
} }
@ -972,7 +972,7 @@ void BotGraph::erasePath () {
nodeTo = m_cacheNodeIndex; nodeTo = m_cacheNodeIndex;
} }
else { else {
ctrl.msg ("Unable to find destination node"); ctrl.msg ("Unable to find destination node.");
return; return;
} }
} }
@ -999,7 +999,7 @@ void BotGraph::erasePath () {
return; return;
} }
} }
ctrl.msg ("There is already no path on this node"); ctrl.msg ("There is already no path on this node.");
} }
void BotGraph::cachePoint (int index) { void BotGraph::cachePoint (int index) {
@ -1667,7 +1667,7 @@ void BotGraph::saveOldFormat () {
// save the node paths... // save the node paths...
for (const auto &path : m_paths) { for (const auto &path : m_paths) {
PODPath pod {}; PODPath pod {};
converToPOD (path, pod); convertToPOD (path, pod);
fp.write (&pod, sizeof (PODPath)); fp.write (&pod, sizeof (PODPath));
} }
@ -2839,7 +2839,7 @@ void BotGraph::convertFromPOD (Path &path, const PODPath &pod) {
path.vis.crouch = pod.vis.crouch; path.vis.crouch = pod.vis.crouch;
} }
void BotGraph::converToPOD (const Path &path, PODPath &pod) { void BotGraph::convertToPOD (const Path &path, PODPath &pod) {
pod = {}; pod = {};
pod.number = path.number; pod.number = path.number;

View file

@ -138,7 +138,7 @@ BotCreateResult BotManager::create (const String &name, int difficulty, int pers
// do not allow create bots when there is no graph // do not allow create bots when there is no graph
if (!graph.length ()) { if (!graph.length ()) {
ctrl.msg ("There is not graph found. Cannot create bot."); ctrl.msg ("There is no graph found. Cannot create bot.");
return BotCreateResult::GraphError; return BotCreateResult::GraphError;
} }