diff --git a/include/yapb.h b/include/yapb.h index 30d17d5..f6ea476 100644 --- a/include/yapb.h +++ b/include/yapb.h @@ -1301,7 +1301,6 @@ private: Array m_activeGrenades; // holds currently active grenades on the map Array m_intrestingEntities; // holds currently intresting entities on the map - SmallArray m_creationTab; // bot creation tab SmallArray m_filters; // task filters SmallArray m_bots; // all available bots @@ -1640,7 +1639,7 @@ public: void setDangerValue (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 converToPOD (const Path &path, PODPath &pod); + void convertToPOD (const Path &path, PODPath &pod); void convertCampDirection (Path &path); const char *getDataDirectory (bool isMemoryFile = false); diff --git a/source/control.cpp b/source/control.cpp index 1686b05..7a303ba 100644 --- a/source/control.cpp +++ b/source/control.cpp @@ -147,7 +147,7 @@ int BotControl::cmdWeaponMode () { modes.push ("smg", 4); modes.push ("rifle", 5); modes.push ("sniper", 6); - modes.push ("stanard", 7); + modes.push ("standard", 7); auto mode = getStr (type); diff --git a/source/graph.cpp b/source/graph.cpp index 96f030e..0e99bf0 100644 --- a/source/graph.cpp +++ b/source/graph.cpp @@ -928,7 +928,7 @@ void BotGraph::pathCreate (char dir) { nodeTo = m_cacheNodeIndex; } else { - ctrl.msg ("Unable to find destination node"); + ctrl.msg ("Unable to find destination node."); return; } } @@ -972,7 +972,7 @@ void BotGraph::erasePath () { nodeTo = m_cacheNodeIndex; } else { - ctrl.msg ("Unable to find destination node"); + ctrl.msg ("Unable to find destination node."); return; } } @@ -999,7 +999,7 @@ void BotGraph::erasePath () { 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) { @@ -1667,7 +1667,7 @@ void BotGraph::saveOldFormat () { // save the node paths... for (const auto &path : m_paths) { PODPath pod {}; - converToPOD (path, pod); + convertToPOD (path, pod); fp.write (&pod, sizeof (PODPath)); } @@ -2839,7 +2839,7 @@ void BotGraph::convertFromPOD (Path &path, const PODPath &pod) { path.vis.crouch = pod.vis.crouch; } -void BotGraph::converToPOD (const Path &path, PODPath &pod) { +void BotGraph::convertToPOD (const Path &path, PODPath &pod) { pod = {}; pod.number = path.number; diff --git a/source/manager.cpp b/source/manager.cpp index d6a7850..ed2ed91 100644 --- a/source/manager.cpp +++ b/source/manager.cpp @@ -138,7 +138,7 @@ BotCreateResult BotManager::create (const String &name, int difficulty, int pers // do not allow create bots when there is no graph 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; }