Posted by Bucky on April 21, 2001 at 22:01:18:
From what I see, on command 45, the following happens (in order).
1) Rose gains one unit of energy (since Rose was created before Bambi) bringing the total to 27 units of energy
2) Bambi moves, and loses 2 units of energy (one for existing, one for moving) Bambi now has 23 units of energy
3) Bambi then munches Rose, gaining Rose's 27 units
so... Bambi should now have 27+23, so 50 units of energy.
No more ticks are executed before status is called, and Bambi only has 48 units of energy, according to the sample. Am I missing something here? My eat functions seem to work properly for the rest of the file.
any help would be appreciated..
Post a Followup