Rockbox

Tasklist

FS#10589 - Wormlet: food can collide with arghs.

Attached to Project: Rockbox
Opened by Asael Reiter (AsaelReiter) - Sunday, 06 September 2009, 10:23 GMT
Last edited by Thomas Martitz (kugel.) - Thursday, 17 September 2009, 21:08 GMT
Task Type Bugs
Category Games
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

When a food is created, only his corners are been checked, so if food_size is greater than argh_size, the food can cover an entire argh.
The argh doesn't been removed - just invisible (even after that the food is eaten).
   wl.diff (1.7 KiB)
This task depends upon

Closed by  Thomas Martitz (kugel.)
Thursday, 17 September 2009, 21:08 GMT
Reason for closing:  Fixed
Additional comments about closing:  Accepted in r22724. Thank you very much.

Your check seems simpler and more correct than the current code. I'm wondering if each collision check should do it this way.
Comment by Asael Reiter (AsaelReiter) - Wednesday, 09 September 2009, 13:02 GMT
This bug may happen also when a arch is created (if argh_size-food_size>=2).
I think that the attached file fixes it.
   wl.diff (3.9 KiB)
Comment by Asael Reiter (AsaelReiter) - Thursday, 17 September 2009, 20:55 GMT
As Kugel suggested, I wrote a macro to make it more simple.
   wl.diff (3.9 KiB)

Loading...