Browse Source

must purge shared data when simulation send package to terminal

Bastien Sevajol 7 years ago
parent
commit
8eaab88a93
1 changed files with 2 additions and 0 deletions
  1. 2 0
      synergine2_cocos2d/terminal.py

+ 2 - 0
synergine2_cocos2d/terminal.py View File

@@ -1,4 +1,5 @@
1 1
 # coding: utf-8
2
+from synergine2.share import shared
2 3
 from synergine2.terminals import Terminal, TerminalPackage
3 4
 
4 5
 
@@ -11,6 +12,7 @@ class GameTerminal(Terminal):
11 12
         self.gui.before_received(package)
12 13
         # TODO: pas d'event après le move: il faut subscribe je crois :p
13 14
         super().receive(package)
15
+        shared.purge_data()
14 16
         self.gui.after_received(package)
15 17
 
16 18
     def run(self):