Hi all,

First off, thanks for making this game! It's really fun.

I came across a really strange bug where the airhammer doesn't dig.  
The sound effects and animation run but no hole appears in the ground.  
I'm running Wormux 0.9.2 on a PowerPC Mac (PowerBook G4 laptop running  
OS X 10.5). The issue appears both in the 0.9.2 binary I downloaded  
from the website, and a version I built from SVN trunk.

I think I tracked down the source of the bug. It appears in src/map/ 
tileitem.cpp, in the TileItem_AlphaSoftware::Dig function. I believe  
the problem is with endianness. I was able to fix the issue by taking  
out the (+ 3) from the pixel indexing, and then casting the pointer  
type to a (Uint32 *) so it would read/write the whole 32-bit value  
instead of looking at the wrong byte.

Please let me know if anything in my description of the problem/ 
solution was unclear.

-Jeremy

_______________________________________________
Wormux-dev mailing list
Wormux-dev@gna.org
https://mail.gna.org/listinfo/wormux-dev

Répondre à