X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=new%2Fplomrogue%2Fgame.py;h=7275ce944ee7a7563d015b0b2adeb7c3ed6776b5;hb=dcb275a3ae06858ba25eee3c5cd7ab6c1d44a4df;hp=ffedbfaff14200e0af6a4f2335af5b5e0f66448b;hpb=ecf3799b03f0a9098956d529f26be54f37c6534b;p=plomrogue2-experiments
diff --git a/new/plomrogue/game.py b/new/plomrogue/game.py
index ffedbfa..7275ce9 100755
--- a/new/plomrogue/game.py
+++ b/new/plomrogue/game.py
@@ -175,7 +175,7 @@ class Game(GameBase):
def task_prefixed(command_name, task_prefix, task_command,
argtypes_prefix=None):
- if command_name[:len(task_prefix)] == task_prefix:
+ if command_name.startswith(task_prefix):
task_name = command_name[len(task_prefix):]
if task_name in self.tasks:
f = partial_with_attrs(task_command, task_name, self)