[client] fix GamePlayer

This commit is contained in:
2019-06-13 21:42:13 +03:00
parent dc1279f636
commit 7fa5a4e048
3 changed files with 7 additions and 2 deletions

View File

@@ -4,6 +4,7 @@
* Fixed join game after relogin
* Updated `CreateGamePopup` for any screen sizes
* Fixed tank destroy zero score label
* Added custom size map support
0.14.0
------

View File

@@ -1,6 +1,8 @@
* [bug] **clock** bonus for spawned tanks
* [feature] **shovel** bonus with armor bricks
* [feature] bonuses in dota/death mod
* [feature] tanks and bullets speed balancing
* [bug] record system broken
* [feature] custom map size
* [feature] result frame update (next game select, only human player info)
* [feature] network game series
* [feature] map packs (create in editor, import in game, save imported in local storage)
* [feature] update bots

View File

@@ -26,10 +26,12 @@ class GamePlayer extends Game {
}
public function stop():Void {
ticker.stop();
Lib.current.stage.removeEventListener(Event.ENTER_FRAME, onEnterFrame);
}
private function onEnterFrame(event:Event):Void {
ticker.tick();
var events = 0;
for (event in data) {
if (event.time <= ticker.time) {