From 6297725a7dc7206bb8bf21efa279540a5b6e4c20 Mon Sep 17 00:00:00 2001
From: Penelope Haze <out.of.p.haze@proton.me>
Date: Wed, 19 Jun 2024 14:14:49 -0400
Subject: [PATCH] Make diagonal movement on by default

---
 code/datums/config/config_types/config_game_option.dm | 4 ++--
 code/modules/keybindings/bindings_atom.dm             | 2 +-
 code/modules/keybindings/bindings_client.dm           | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/code/datums/config/config_types/config_game_option.dm b/code/datums/config/config_types/config_game_option.dm
index 1b53d5733f0..d6bc64033e7 100644
--- a/code/datums/config/config_types/config_game_option.dm
+++ b/code/datums/config/config_types/config_game_option.dm
@@ -21,7 +21,7 @@
 		/decl/config/num/default_darksight_effectiveness,
 		/decl/config/toggle/grant_default_darksight,
 		/decl/config/num/expected_round_length,
-		/decl/config/toggle/allow_diagonal_movement,
+		/decl/config/toggle/on/allow_diagonal_movement,
 		/decl/config/toggle/expanded_alt_interactions,
 		/decl/config/toggle/ert_admin_call_only,
 		/decl/config/toggle/ghosts_can_possess_animals,
@@ -134,7 +134,7 @@
 	uid = "grant_default_darksight"
 	desc = "Whether or not all human mobs have very basic darksight by default."
 
-/decl/config/toggle/allow_diagonal_movement
+/decl/config/toggle/on/allow_diagonal_movement
 	uid = "allow_diagonal_movement"
 	desc = "Allow multiple input keys to be pressed for diagonal movement."
 
diff --git a/code/modules/keybindings/bindings_atom.dm b/code/modules/keybindings/bindings_atom.dm
index 6fe32e00f0e..aaed1a9fbe1 100644
--- a/code/modules/keybindings/bindings_atom.dm
+++ b/code/modules/keybindings/bindings_atom.dm
@@ -15,7 +15,7 @@
 	if((movement_dir & EAST) && (movement_dir & WEST))
 		movement_dir &= ~(EAST|WEST)
 
-	if(!get_config_value(/decl/config/toggle/allow_diagonal_movement))
+	if(!get_config_value(/decl/config/toggle/on/allow_diagonal_movement))
 		if(movement_dir & user.last_move_dir_pressed)
 			movement_dir = user.last_move_dir_pressed
 		else
diff --git a/code/modules/keybindings/bindings_client.dm b/code/modules/keybindings/bindings_client.dm
index fb56abe3346..cafe738137b 100644
--- a/code/modules/keybindings/bindings_client.dm
+++ b/code/modules/keybindings/bindings_client.dm
@@ -37,7 +37,7 @@
 		if(!(next_move_dir_sub & movement))
 			next_move_dir_add |= movement
 
-		if(movement && !get_config_value(/decl/config/toggle/allow_diagonal_movement))
+		if(movement && !get_config_value(/decl/config/toggle/on/allow_diagonal_movement))
 			last_move_dir_pressed = movement
 
 	// Client-level keybindings are ones anyone should be able to do at any time