1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-25 22:53:19 +00:00

Item/boat burning message no longer appears when this happens out of sight

This commit is contained in:
Zeno Rogue 2017-10-16 00:28:05 +02:00
parent 3a3453da2d
commit 43994125d8

View File

@ -1598,7 +1598,9 @@ bool makeflame(cell *c, int timeout, bool checkonly) {
if(!checkonly) destroyTrapsOn(c);
if(itemBurns(c->item)) {
if(checkonly) return true;
addMessage(XLAT("%The1 burns!", c->item)), c->item = itNone;
if(c->cpdist <= 7)
addMessage(XLAT("%The1 burns!", c->item));
c->item = itNone;
}
if(cellUnstable(c)) {
if(checkonly) return true;
@ -1609,7 +1611,8 @@ bool makeflame(cell *c, int timeout, bool checkonly) {
return false;
else if(c->wall == waBoat) {
if(checkonly) return true;
addMessage(XLAT("%The1 burns!", winf[c->wall].name));
if(c->cpdist <= 7)
addMessage(XLAT("%The1 burns!", winf[c->wall].name));
drawFireParticles(c, 24);
placeWater(c, c);
if(isIcyLand(c)) HEAT(c) += 1;