Lemmings Forums

NeoLemmix => Bugs & Suggestions => Closed => Topic started by: Armani on April 25, 2022, 07:47:43 AM

Title: [BUG][PLAYER] Falling lemmings can avoid being affected by objects sometimes
Post by: Armani on April 25, 2022, 07:47:43 AM
(https://i.imgur.com/7j7smaW.gif)

Falling lemmings can avoid being affected by objects if all the following conditions are met:

1) The object have to be very thin: specifically 2pixels or less

  - I'm quite sure this has something to do with the fact that a normal lemming falls for 3pixels every frame.

2) The lemming have to start falling 3n+2 pixels above the object

3) The most weird thing: The object must have level space of 258 or more pixels above it


attached the level file  ;)
Title: Re: [BUG][PLAYER] Falling lemmings can avoid being affected by objects sometimes
Post by: namida on November 06, 2022, 10:47:08 PM
Did some testing. Confirmed I can reproduce this using your test level. I also found that a Reacher can exhibit a similar behavior, also with the "must be low enough in the level" requirement.
Title: Re: [BUG][PLAYER] Falling lemmings can avoid being affected by objects sometimes
Post by: namida on November 06, 2022, 11:01:20 PM
Found it. A position check during the check-trigger-areas-on-intermediate-pixels code, was written in a hackish way that produced a side effect of comparing values modulo 256 instead of comparing them properly. Fixed in commit afb61e1.