DEADSOFTWARE

cheats are active in single/coop now ('cause Wyoming Knotts, you know)
[d2df-sdl.git] / src / game / g_player.pas
index e6e0d360227097ccb7a83698395ab0cf4777ca3f..4b0bffce46977c3e721a484dd314fb764ceff52a 100644 (file)
@@ -3661,7 +3661,7 @@ function TPlayer.PickItem(ItemType: Byte; arespawn: Boolean; var remove: Boolean
     if (FBFGFireCounter <> -1) then begin result := false; exit; end;
     result := true;
     if gBerserkAutoswitch then exit;
-    if not (gDebugMode or gCheats) then exit;
+    if not conIsCheatsEnabled then exit;
     result := false;
   end;