1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-08-04 04:43:57 +00:00

Merge pull request #15 from Quuxplusone/chop-message

Fix an accidental reversal of tree-chopping messages.
This commit is contained in:
nobrakal 2017-10-17 21:40:03 +02:00 committed by GitHub
commit 8d65fe5107

View File

@ -6547,13 +6547,13 @@ bool movepcto(int d, int subdir, bool checkonly) {
if(checkonly) return true; if(checkonly) return true;
if(c2->wall == waSmallTree) { if(c2->wall == waSmallTree) {
drawParticles(c2, winf[c2->wall].color, 4); drawParticles(c2, winf[c2->wall].color, 4);
addMessage(XLAT("You start chopping down the tree.")); addMessage(XLAT("You chop down the tree."));
playSound(c2, "hit-axe" + pick123()); playSound(c2, "hit-axe" + pick123());
c2->wall = waNone; c2->wall = waNone;
} }
else if(c2->wall == waBigTree) { else if(c2->wall == waBigTree) {
drawParticles(c2, winf[c2->wall].color, 8); drawParticles(c2, winf[c2->wall].color, 8);
addMessage(XLAT("You chop down the tree.")); addMessage(XLAT("You start chopping down the tree."));
playSound(c2, "hit-axe" + pick123()); playSound(c2, "hit-axe" + pick123());
c2->wall = waSmallTree; c2->wall = waSmallTree;
} }