saved game will not be loaded if it's newer than the current version

This commit is contained in:
minjaesong
2023-10-09 15:17:24 +09:00
parent d8cafe7f12
commit dd1e53f761
5 changed files with 49 additions and 4 deletions

View File

@@ -115,4 +115,8 @@ data class Snapshot(var revision: Int) {
revision = (b[0].toUint() ushr 7 shl 2) or b[1].toUint().and(3)
update()
}
override fun hashCode(): Int {
return year.shl(24) or week.shl(16) or revision
}
}