mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-14 12:34:05 +09:00
saved game will not be loaded if it's newer than the current version
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user