Author Topic: [BUG] [EDITOR] Right-click does nothing when clicking on existing piece  (Read 1498 times)

0 Members and 1 Guest are viewing this topic.

Offline Nepster

  • Posts: 1829
    • View Profile
Usually one can add another piece to the editor by right-click on the level window. However if there is already some piece at the position one clicks at, the editor does nothing at all.
The expected behavior would be to pop up the Insert Terrain/Object/Steel Area selection, that already appears otherwise. At least the editor should do something and not just keep silent!

Offline namida

  • Administrator
  • Posts: 12399
    • View Profile
    • NeoLemmix Website
It looks like EricLang deliberately coded the editor this way; I have no idea why, but there is an IF branch which checks if any pieces are under the cursor, then the check for left or right click is inside that. In the case that there ARE pieces, there's even explicitly an "if right click, exit the function" code.

I altered this so it checks right click before branching based on the presence / absence of pieces under the cursor (and if found, does nothing further), and it doesn't seem to cause any problems whatsoever. So, fixed for next update. :)
My Lemmings projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)