*: remove newly superfluous static types on attributes
[nit.git] / contrib / tinks / src / game / framework.nit
index 49c74b0..df30aac 100644 (file)
@@ -31,7 +31,7 @@ class TGame
        private var clock = new Clock is noserialize
 
        # Tick count of the last turn (The first turn as a tick of 0)
-       var tick: Int = -1
+       var tick = -1
 
        # Execute the next turn and return it as a `TTurn`
        #
@@ -41,7 +41,7 @@ class TGame
                var dt = clock.lapse
                tick += 1
 
-               var turn = new TTurn(self, tick, dt.to_f, dt.millisec)
+               var turn = new TTurn(self, tick, dt, ((dt-dt.floor)*1000.0).to_i)
                return turn
        end