aboutsummaryrefslogtreecommitdiff
path: root/game/src/Autoload/Resolution.gd
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2023-04-29 00:40:18 +0200
committer GitHub <noreply@github.com>2023-04-29 00:40:18 +0200
commit05937359e8c53ee76dc3ce537dd70083a016f766 (patch)
tree899b97479f6a1aabbfe352747bea162ce5720193 /game/src/Autoload/Resolution.gd
parent10053cf259c55ee45803268a844edf1011d8a16b (diff)
parent5022ec800b096e9a85d6ef07ca4b652abb8625ee (diff)
Merge pull request #101 from OpenVic2Project/more-image-processing
Dynamic minimap + vertical map subdivision
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())