Skip to content

Commit 5e5ffa3

Browse files
committed
fix: 'View Unowned Items' subscreen bugs
1 parent 7bc53d4 commit 5e5ffa3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/new_subscr.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1983,7 +1983,10 @@ void SW_Counter::draw(BITMAP* dest, int32_t xofs, int32_t yofs, SubscrPage& page
19831983
infinite = false;
19841984

19851985
if(!(flags&SUBSCR_COUNTER_SHOW0)&&!value&&!infinite)
1986+
{
1987+
zq_ignore_item_ownership = b;
19861988
return;
1989+
}
19871990

19881991
if(infinite)
19891992
sprintf(valstring, "%c", infchar);
@@ -2290,7 +2293,10 @@ void SW_BtnCounter::draw(BITMAP* dest, int32_t xofs, int32_t yofs, SubscrPage& p
22902293
infinite = false;
22912294

22922295
if(!(flags&SUBSCR_BTNCOUNTER_SHOW0)&&!value&&!infinite)
2296+
{
2297+
zq_ignore_item_ownership = b;
22932298
return;
2299+
}
22942300

22952301
if(infinite)
22962302
sprintf(valstring, "%c", infchar);

0 commit comments

Comments
 (0)