# HG changeset patch # User KarstenBock@gmx.net # Date 1321727318 -3600 # Node ID ed24962cdf5e822651ab1e4b5bc28de478af2289 # Parent 9c82ed72dc9dbdb20c2c9a3dca6a303ca465f5c0 Small fixes. diff -r 9c82ed72dc9d -r ed24962cdf5e entities/action.py --- a/entities/action.py Sat Nov 19 16:12:56 2011 +0100 +++ b/entities/action.py Sat Nov 19 19:28:38 2011 +0100 @@ -450,11 +450,8 @@ @param commands: Special commands that are executed @type commands: Dictionary """ - self.commands = commands or () - self.controller = controller - self.model = controller.model + Action.__init__(self, controller, commands) self.script = script - self.executed = False def execute(self): self.controller.systems.scripting.runScript(self.script) diff -r 9c82ed72dc9d -r ed24962cdf5e systems/scriptingsystem.py --- a/systems/scriptingsystem.py Sat Nov 19 16:12:56 2011 +0100 +++ b/systems/scriptingsystem.py Sat Nov 19 19:28:38 2011 +0100 @@ -52,7 +52,10 @@ self.system.funcs, self.system.vals ) - self.cur_action = action(self.system.world, action_params) + if not (isinstance(action_params, list) + or isinstance(action_params, tuple)): + action_params = [action_params] + self.cur_action = action(self.system.world, *action_params) self.wait = action_data[2] if len(action_data) >= 4: vals = (