aboutsummaryrefslogtreecommitdiff
path: root/game/src/Autoload/Resolution.gd
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-04-28 20:08:58 +0200
committer Hop311 <hop3114@gmail.com>2023-04-28 20:08:58 +0200
commit5022ec800b096e9a85d6ef07ca4b652abb8625ee (patch)
tree899b97479f6a1aabbfe352747bea162ce5720193 /game/src/Autoload/Resolution.gd
parent2455806f52f0133e5bd5e4997589c5ce4fe99b2c (diff)
Terrain channel for provinces + generated minimap
Diffstat (limited to 'game/src/Autoload/Resolution.gd')
-rw-r--r--game/src/Autoload/Resolution.gd2
1 files changed, 1 insertions, 1 deletions
diff --git a/game/src/Autoload/Resolution.gd b/game/src/Autoload/Resolution.gd
index e1e788b..35ecbb3 100644
--- a/game/src/Autoload/Resolution.gd
+++ b/game/src/Autoload/Resolution.gd
@@ -62,7 +62,7 @@ func get_resolution_display_name(resolution_value : Vector2i) -> StringName:
func get_resolution_value_from_string(resolution_string : String) -> Vector2i:
if not resolution_string.is_empty():
for resolution in _resolutions.values():
- if resolution_string == resolution.get(name) or resolution_string == resolution.display_name:
+ if resolution_string == resolution.name or resolution_string == resolution.display_name:
return resolution.value
var result := _regex.search(resolution_string)
if result: return Vector2i(result.get_string(1).to_int(), result.get_string(2).to_int())