basanta078 / marioai

Automatically exported from code.google.com/p/marioai
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Incorrect comparison in LevelScene.getEnemyFloatPos() #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
LevelScene.java
line 458:
if (sprite.kind >= Sprite.KIND_GOOMBA && sprite.kind <= Sprite.KIND_MUSHROOM)
// if( int >= 80 && int <= 2)      
// This will always evaluate to false!

I'm pretty sure my version is up to date. Note that this means NO data can be 
retrieved using environment.getEnemyFloatPos(), whish is very very bad!

Hope I'm not mistaken!

- Isaiah Hines
- isaiahhines@gmail.com

Original issue reported on code.google.com by BeBopp...@gmail.com on 5 Oct 2010 at 4:42

GoogleCodeExporter commented 9 years ago
Dear Isaiah, 

Thank you for pushing this issue up! You're right, this is a bug, brought with 
recent update for the  encoding. Will be fixed shortly.

Original comment by Sergey.K...@gmail.com on 8 Oct 2010 at 1:59

GoogleCodeExporter commented 9 years ago

Original comment by Sergey.K...@gmail.com on 8 Oct 2010 at 2:01

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r587.

Original comment by Sergey.K...@gmail.com on 8 Oct 2010 at 2:05