소스 검색

GUI: Order move when still rotating: should stop current rotation. Closes #44

Bastien Sevajol 6 년 전
부모
커밋
d6a208387d
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      opencombat/gui/base.py

+ 1 - 0
opencombat/gui/base.py 파일 보기

@@ -322,6 +322,7 @@ class Game(TMXGui):
322 322
     def start_rotate_subject(self, event: move.SubjectStartRotationEvent):
323 323
         actor = self.layer_manager.subject_layer.subjects_index[event.subject_id]
324 324
         rotate_action = RotateTo(event.rotate_absolute, event.duration)
325
+        actor.stop_actions((RotateTo,))
325 326
         actor.do(rotate_action)
326 327
 
327 328
     def rotate_subject(self, event: move.SubjectFinishRotationEvent):