-#!/usr/bin/python3
+#!/usr/bin/env python
# This is the open-adventure dungeon generator. It consumes a YAML description of
# the dungeon and outputs a dungeon.h and dungeon.c pair of C code files.
if labels:
global statedefines
statedefines += "/* States for %s */\n" % item[0]
- for (i, label) in enumerate(labels):
- statedefines += "#define %s\t%d\n" % (label, i)
+ for (j, label) in enumerate(labels):
+ statedefines += "#define %s\t%d\n" % (label, j)
statedefines += "\n"
sounds_str = ""
if attr.get("sounds") == None: