Zero-K
Zero-K copied to clipboard
Make `IsCurrentVersionNewerThan` use the builtin
Spring.Utilities.IsCurrentVersionNewerThan currently uses some string parsing hax to detect version. There is a builtin function for that, Script.IsEngineMinVersion (beware, Script not Spring).
This issue is fixed (https://github.com/ZeroK-RTS/Zero-K/commit/e79e54) and can be closed.
I think I wanted to remove the remaining thin wrapper too, but doing so involves checking if any mods use it. https://github.com/ZeroK-RTS/Zero-K/blob/68d6f7193811cc06c3594c08ad24c8d6a1af63c8/LuaRules/Utilities/versionCompare.lua#L7-L8