I found a bug, it's new in v3.11.
When editing PoP2 or PoP1 SNES, the starting position of the prince is always shown as facing right.
The tiles screen highlights the correct direction. Only the prince in the room is drawn wrong.
The bug doesn't occur when editing PoP1 DOS.
The bug is in this area:
Code: Select all
if (iEditPoP == 2)
{
if ((iCurRoom == arKidRoom[1]) && (iLoc == arKidPos[1]))
{
ShowImage (-8, (int[]){1, 0, 0, 0}, screen, iLoc, 0, 0, 24, 84);
}
}
if (iEditPoP == 3)
{
if ((iCurRoom == arKidRoom[1]) && (iLoc == arKidPos[1]))
{
ShowImage (-8, (int[]){1, 0, 0, 0}, screen, iLoc, 0, 0, 20, 86);
}
}
In both calls to ShowImage(), {1, 0, 0, 0} should be {1, 1, 0, 0}.
(iModifier[1] indicates the index of the prince to draw. When there is only one prince, he is #1, not #0.)
Another problem I found:
In src/apoplexy.dev, the executable output directory is currently given as an absolute path: Z:\home\norbert\apoplexy-3.11
This causes an error because that path does not exist on my system.
It should be given as a relative path from the src/ directory: .. (two dots)