From 7e3b19b5ac3a2994241447495da1a5d429950772 Mon Sep 17 00:00:00 2001 From: Earen <slifeleaf@gmail.com> Date: Fri, 8 Jan 2016 13:50:06 +0300 Subject: [PATCH] Damn it, I can't read my own code! --- Scripts/Source/PSM_PosemanagerEntries.psc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Scripts/Source/PSM_PosemanagerEntries.psc b/Scripts/Source/PSM_PosemanagerEntries.psc index 948ab3f..84af26e 100644 --- a/Scripts/Source/PSM_PosemanagerEntries.psc +++ b/Scripts/Source/PSM_PosemanagerEntries.psc @@ -188,13 +188,8 @@ int function KHConf_singleton() global int jLocalObj = JDB.solveObj(path) int jRemote = JValue.readFromFile(fpath) - bool chooseLocal = jLocalObj != 0 \ - && JSONFile_formatVersion(jLocalObj) == JSONFile_formatVersion(jRemote) \ - && JSONFile_modifyDate(jLocalObj) > JSONFile_modifyDate(jRemote) - - if !chooseLocal + if JSONFile_formatVersion(jLocalObj) != JSONFile_formatVersion(jRemote) JDB.solveObjSetter(path, jRemote, True) - ;PrintConsole("KHConf_singleton: " + jRemote) return jRemote elseif JSONFile_modifyDate(jLocalObj) > JSONFile_modifyDate(jRemote) JValue.writeToFile(jLocalObj, fpath)