Merge pull request #833 from tgstation/Cyberboss-patch-1

Fix the DMAPI bug
This commit is contained in:
Jordan Brown
2018-12-13 10:13:40 -05:00
committed by GitHub
+2 -1
View File
@@ -31,7 +31,8 @@
if(0)
api_datum = /datum/tgs_api/v4
if(version.suite != null && version.major != null && version.minor != null && version.patch != null && version.deprefixed_parameter > TgsMaximumAPIVersion())
var/datum/tgs_version/max_api_version = TgsMaximumAPIVersion();
if(version.suite != null && version.major != null && version.minor != null && version.patch != null && version.deprefixed_parameter > max_api_version.deprefixed_parameter)
TGS_ERROR_LOG("Detected unknown API version! Defaulting to latest. Update the DMAPI to fix this problem.")
api_datum = /datum/tgs_api/latest