Changeset 85


Ignore:
Timestamp:
03/26/12 17:17:56 (3 years ago)
Author:
dersek
Message:

Fixed a bug around line 110, where blockCords was not assigned in the for loop when the level ended. We might want to run through that and figure out what's happening, because blockCords won't have the right value if the desired 'if' case is never met. Because it appears to occur at the end of the level, I'm not sure if it changes anything, but it's worth looking into.
~Dersek

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Alpha/game.py

    r83 r85  
    105105        for sizeIndex in range(len(BBUILDER.PUZZLESIZE)):
    106106            if self.goalNumber <= BBUILDER.PUZZLESIZE[sizeIndex]:
    107                 blockCords = BBUILDER.PUZZLECORDS[puzzleNum][sizeIndex]
    108107                break
     108        blockCords = BBUILDER.PUZZLECORDS[puzzleNum][sizeIndex]
    109109        puzzlePos = BBUILDER.PUZZLEPOS[puzzleNum]
    110110        return puzzleGoal(puzzlePos, puzzleType, self.goalNumber, blockCords)
Note: See TracChangeset for help on using the changeset viewer.