mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 11:34:05 +09:00
simplified a structure of UIs a bit
This commit is contained in:
@@ -144,7 +144,7 @@ class WorldTime(initTime: Long = 0L) {
|
||||
|
||||
fun update(delta: Float) {
|
||||
//time
|
||||
realMillisec += delta
|
||||
realMillisec += delta * 1000.0
|
||||
if (realMillisec >= 1000.0 / REAL_SEC_TO_GAME_SECS) {
|
||||
realMillisec -= 1000.0 / REAL_SEC_TO_GAME_SECS
|
||||
TIME_T += timeDelta
|
||||
|
||||
Reference in New Issue
Block a user