home
·
contact
·
privacy
projects
/
plomrogue2
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't recalculate directions all the time, unnecessarily.
[plomrogue2]
/
plomrogue
/
game.py
diff --git
a/plomrogue/game.py
b/plomrogue/game.py
index c4951799002c3a2ec086bde6342cb07231c1c6f5..a1c2ee641cc1dcfefd8797b284676095ab69e83b 100755
(executable)
--- a/
plomrogue/game.py
+++ b/
plomrogue/game.py
@@
-180,7
+180,7
@@
class Game(GameBase):
def get_string_options(self, string_option_type):
if string_option_type == 'direction':
def get_string_options(self, string_option_type):
if string_option_type == 'direction':
- return self.map_geometry.
get_directions()
+ return self.map_geometry.
directions
elif string_option_type == 'char':
return [c for c in
string.digits + string.ascii_letters + string.punctuation + ' ']
elif string_option_type == 'char':
return [c for c in
string.digits + string.ascii_letters + string.punctuation + ' ']