[SPLEEF] Workaround if() optimization bug, fix gamemode timing