mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 18:00:34 +00:00
Item/boat burning message no longer appears when this happens out of sight
This commit is contained in:
parent
3a3453da2d
commit
43994125d8
7
game.cpp
7
game.cpp
@ -1598,7 +1598,9 @@ bool makeflame(cell *c, int timeout, bool checkonly) {
|
|||||||
if(!checkonly) destroyTrapsOn(c);
|
if(!checkonly) destroyTrapsOn(c);
|
||||||
if(itemBurns(c->item)) {
|
if(itemBurns(c->item)) {
|
||||||
if(checkonly) return true;
|
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(cellUnstable(c)) {
|
||||||
if(checkonly) return true;
|
if(checkonly) return true;
|
||||||
@ -1609,7 +1611,8 @@ bool makeflame(cell *c, int timeout, bool checkonly) {
|
|||||||
return false;
|
return false;
|
||||||
else if(c->wall == waBoat) {
|
else if(c->wall == waBoat) {
|
||||||
if(checkonly) return true;
|
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);
|
drawFireParticles(c, 24);
|
||||||
placeWater(c, c);
|
placeWater(c, c);
|
||||||
if(isIcyLand(c)) HEAT(c) += 1;
|
if(isIcyLand(c)) HEAT(c) += 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user