Zero-K icon indicating copy to clipboard operation
Zero-K copied to clipboard

Make `IsCurrentVersionNewerThan` use the builtin

Open sprunk opened this issue 7 years ago • 2 comments

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).

sprunk avatar Mar 22 '19 13:03 sprunk

This issue is fixed (https://github.com/ZeroK-RTS/Zero-K/commit/e79e54) and can be closed.

strategineer avatar Dec 07 '25 16:12 strategineer

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

sprunk avatar Dec 08 '25 02:12 sprunk