Devilutionx: Vanilla level bug for the documents

Created on 16 Nov 2019  路  3Comments  路  Source: diasurgical/devilutionX

Savegame:
single_2.sv.zip

Pictures:
2

vanilla

Most helpful comment

Because the function assumes only one tile can be wrong, it does not properly fix broken adjacent tiles.

###
#.#
#.#
###

If the second . had been a #, it would fix it. But instead it checks the second . to see if its a lava tile (it's not) and the fix fails.

Brought to you by yours truly:

// DRLG_L3PoolFix
if(dungeon[dunx + 1][duny] == 37) dungeon[dunx][duny] = 33;
if(dungeon[dunx + 1][duny] == 35) dungeon[dunx][duny] = 33;

All 3 comments

Vanilla bugs should be documented upstream

Because the function assumes only one tile can be wrong, it does not properly fix broken adjacent tiles.

###
#.#
#.#
###

If the second . had been a #, it would fix it. But instead it checks the second . to see if its a lava tile (it's not) and the fix fails.

Brought to you by yours truly:

// DRLG_L3PoolFix
if(dungeon[dunx + 1][duny] == 37) dungeon[dunx][duny] = 33;
if(dungeon[dunx + 1][duny] == 35) dungeon[dunx][duny] = 33;

@galaxyhaxz where exactly should the lines goe?

When I try to apply them there is still something not quite right about the level (notice the black spots in the lava)
image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Tmkrth picture Tmkrth  路  25Comments

Chance4us picture Chance4us  路  15Comments

predator8bit picture predator8bit  路  22Comments

dalvim picture dalvim  路  16Comments

ctrl-meta-f picture ctrl-meta-f  路  30Comments