Read-only archive of the Armageddon Games Forums Archive (2000–2026) · About this archive

[zplayer] Some hearts become white from left to right

0 replies · 11,024 views · Started 19 March 2024

Steps to recreate:

[LIST=1]
[*]In the editor, File->New
[*]Place a 'Fire' enemy on the screen
[*]Test the quest
[*]Walk into the fire repeatedly
[*]Observe the fullmost heart correctly becomes white from right to left, but the other two become white from left to right.
[/LIST]

Here is what overtile8 draws when called with various values of the tile parameter:


80181 upper right corner of widget box
103036 blackness
103376 full heart
103368 half-heart (empty on left side)
103380 empty heart
103388 half-heart (empty on right side)

A bit ugly, but making the if(fulltile) at the bottom of SW_GaugePiece::draw_piece look like this fixes it:


if(fulltile)
overtile16(dest,tile+offs,dx,dy,cset,0);
else
{
if( mtile + offs == 103368 ) // draw half-hearts that are empty on their right side, not left
overtile8(dest, 103388, dx, dy, cset, 0);
else
overtile8(dest, mtile + offs, dx, dy, cset, 0);
}