classicchars: Silence "state not loaded" warnings
This commit is contained in:
parent
44a1822f42
commit
8e270e4acb
2 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,7 @@ class CharNeutralState(StateData.StateData):
|
|||
StateData.StateData.__init__(self, doneEvent)
|
||||
self.__doneEvent = doneEvent
|
||||
self.character = character
|
||||
StateData.StateData.load(self)
|
||||
|
||||
def enter(self, startTrack = None, playRate = None):
|
||||
StateData.StateData.enter(self)
|
||||
|
@ -56,6 +57,7 @@ class CharWalkState(StateData.StateData):
|
|||
self.oldOffsetX = 0
|
||||
self.olfOffsetY = 0
|
||||
self.walkTrack = None
|
||||
StateData.StateData.load(self)
|
||||
return
|
||||
|
||||
def enter(self, startTrack = None, playRate = None):
|
||||
|
|
|
@ -15,6 +15,7 @@ class CharLonelyStateAI(StateData.StateData):
|
|||
StateData.StateData.__init__(self, doneEvent)
|
||||
self.__doneEvent = doneEvent
|
||||
self.character = character
|
||||
StateData.StateData.load(self)
|
||||
|
||||
def enter(self):
|
||||
if hasattr(self.character, 'name'):
|
||||
|
@ -51,6 +52,7 @@ class CharChattyStateAI(StateData.StateData):
|
|||
self.nextChatTime = 0
|
||||
self.lastMessage = [
|
||||
-1, -1]
|
||||
StateData.StateData.load(self)
|
||||
|
||||
def enter(self):
|
||||
if hasattr(self.character, 'name'):
|
||||
|
|
Loading…
Reference in a new issue