[pypy-svn] r62543 - pypy/trunk/pypy/lang/gameboy
tverwaes at codespeak.net
tverwaes at codespeak.net
Wed Mar 4 18:56:54 CET 2009
Author: tverwaes
Date: Wed Mar 4 18:56:54 2009
New Revision: 62543
Modified:
pypy/trunk/pypy/lang/gameboy/video_sprite.py
Log:
woops
Modified: pypy/trunk/pypy/lang/gameboy/video_sprite.py
==============================================================================
--- pypy/trunk/pypy/lang/gameboy/video_sprite.py (original)
+++ pypy/trunk/pypy/lang/gameboy/video_sprite.py Wed Mar 4 18:56:54 2009
@@ -26,17 +26,17 @@
def get_data_at(self, address):
address %= 4
- if id == 0:
+ if address == 0:
return self.y
- if id == 1:
+ if address == 1:
return self.x
- if id == 2:
+ if address == 2:
return self.tile_number
- if id == 3:
+ if address == 3:
return self.get_attributes_and_flags()
# Making PyPy happy...
- raise Exception("Cannot happen")
+ raise Exception(("Cannot happen: ", address))
def set_data(self, y, x, tile_number, flags):
"""
More information about the Pypy-commit
mailing list