diff --git a/src/botlib.cpp b/src/botlib.cpp
index 059136f..0fd86a3 100644
--- a/src/botlib.cpp
+++ b/src/botlib.cpp
@@ -632,19 +632,19 @@ void Bot::updatePickups () {
else if (m_isVIP || !rateGroundWeapon (ent)) {
allowPickup = false;
}
- else if (strcmp (model, "medkit.mdl") == 0 && m_healthValue >= 100.0f) {
+ else if (m_healthValue >= 100.0f && strcmp (model, "medkit.mdl") == 0) {
allowPickup = false;
}
- else if ((strcmp (model, "kevlar.mdl") == 0 || strcmp (model, "battery.mdl") == 0) && pev->armorvalue >= 100.0f) {
+ else if (pev->armorvalue >= 100.0f && (strcmp (model, "kevlar.mdl") == 0 || strcmp (model, "battery.mdl") == 0)) {
allowPickup = false;
}
- else if (strcmp (model, "flashbang.mdl") == 0 && (pev->weapons & cr::bit (Weapon::Flashbang))) {
+ else if ((pev->weapons & cr::bit (Weapon::Flashbang)) && strcmp (model, "flashbang.mdl") == 0) {
allowPickup = false;
}
- else if (strcmp (model, "hegrenade.mdl") == 0 && (pev->weapons & cr::bit (Weapon::Explosive))) {
+ else if ((pev->weapons & cr::bit (Weapon::Explosive)) && strcmp (model, "hegrenade.mdl") == 0) {
allowPickup = false;
}
- else if (strcmp (model, "smokegrenade.mdl") == 0 && (pev->weapons & cr::bit (Weapon::Smoke))) {
+ else if ((pev->weapons & cr::bit (Weapon::Smoke)) && strcmp (model, "smokegrenade.mdl") == 0) {
allowPickup = false;
}
}
diff --git a/vc/yapb.sln b/vc/yapb.sln
index 47365ca..ce15a58 100644
--- a/vc/yapb.sln
+++ b/vc/yapb.sln
@@ -1,7 +1,7 @@
Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 15
-VisualStudioVersion = 15.0.28016.0
+# Visual Studio Version 17
+VisualStudioVersion = 17.1.32127.271
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "yapb", "yapb.vcxproj", "{C232645A-3B99-48F4-A1F3-F20CF0A9568B}"
EndProject
diff --git a/vc/yapb.vcxproj b/vc/yapb.vcxproj
index bb102c3..dddd0ef 100644
--- a/vc/yapb.vcxproj
+++ b/vc/yapb.vcxproj
@@ -90,7 +90,7 @@
DynamicLibrary
- ClangCL
+ v143
false
true
false
@@ -98,7 +98,7 @@
DynamicLibrary
false
- ClangCL
+ v143
false
false
@@ -170,7 +170,7 @@
Default
true
false
- stdcpp14
+ Default
EditAndContinue
@@ -251,7 +251,7 @@
true
false
true
- stdcpp14
+ Default
NDEBUG;%(PreprocessorDefinitions)