If you choose the yellow player 1 from
the list and drag it over the screen
(with the function "draw single element")
there can be only one player.
If you do the same with players 2, 3 or 4
there can be an infinite amount of players.
Why?
Players behave different in Editor
Moderators: Flumminator, Zomis
Must have been a feature added in the early times of the level editor, I guess. It happens only with player 1, and only with that tool, so it really doesn't effect me since I use the line tool most of the time... but hm, I never realized it didn't do that for players 2-4. Were they added later or something? That would cause it.
Suggested fix: Make the following changes to editor.c:
Find the comment /* remove player at old position */ (line 10676 in R'n'D 3.3.0.1).
Change if (new_element == EL_PLAYER_1) to if (new_element >= EL_PLAYER_1 && new_element <= EL_PLAYER_4)
and change if (Feld[x][y] == EL_PLAYER_1) to if (Feld[x][y] == new_element).
Find the comment /* remove player at old position */ (line 10676 in R'n'D 3.3.0.1).
Change if (new_element == EL_PLAYER_1) to if (new_element >= EL_PLAYER_1 && new_element <= EL_PLAYER_4)
and change if (Feld[x][y] == EL_PLAYER_1) to if (Feld[x][y] == new_element).
The H. World levelset can be downloaded from http://www.bd-fans.com/RnD.html -- search The H. World on that page.
Good point; Murphy needs to be included too.
In addition to Murphy, that would also cover the "Sokoban field with player." But that should probably be replaced with sokoban field rather than empty space. So that makes it a little more complicated...
In addition to Murphy, that would also cover the "Sokoban field with player." But that should probably be replaced with sokoban field rather than empty space. So that makes it a little more complicated...
The H. World levelset can be downloaded from http://www.bd-fans.com/RnD.html -- search The H. World on that page.