DEADSOFTWARE

fixed passing thru disabled walls
[d2df-sdl.git] / src / game / g_window.pas
index 8b8919633da10cb3f2908cf0730e0ad809c45deb..8578b70eabec5e305e83931ea42578ffb0663e58 100644 (file)
@@ -440,8 +440,7 @@ begin
         Result := True;
       end;
 
-    SDL_KEYDOWN,
-    SDL_KEYUP:
+    SDL_KEYDOWN, SDL_KEYUP:
       begin
         key := ev.key.keysym.scancode;
         if (g_holmes_enabled) then
@@ -833,7 +832,7 @@ begin
     if ParamStr(idx) = '--no-particle-phys' then gpart_dbg_phys_enabled := false;
     if ParamStr(idx) = '--no-particle-physics' then gpart_dbg_phys_enabled := false;
 
-    if ParamStr(idx) = '--holmes' then g_holmes_enabled := false;
+    if ParamStr(idx) = '--holmes' then begin g_holmes_enabled := true; g_Game_SetDebugMode(); end;
   end;
 
   //if gdbg_map_use_tree_draw then e_WriteLog('using TREE renderer', MSG_NOTIFY);