diff options
author | Mattes D <github@xoft.cz> | 2013-11-03 18:06:15 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2013-11-03 18:06:15 +0100 |
commit | 7c60ad4856f5bc1eef2803f9e30ca9cf16b94bfa (patch) | |
tree | c989936ccf5149422adcdca9589dd8f30467a9f8 /source/Blocks | |
parent | Protocol 1.7: Rewritten packet-sending to use cPacketizer. (diff) | |
parent | Flipped some variables in Portals (diff) | |
download | cuberite-7c60ad4856f5bc1eef2803f9e30ca9cf16b94bfa.tar cuberite-7c60ad4856f5bc1eef2803f9e30ca9cf16b94bfa.tar.gz cuberite-7c60ad4856f5bc1eef2803f9e30ca9cf16b94bfa.tar.bz2 cuberite-7c60ad4856f5bc1eef2803f9e30ca9cf16b94bfa.tar.lz cuberite-7c60ad4856f5bc1eef2803f9e30ca9cf16b94bfa.tar.xz cuberite-7c60ad4856f5bc1eef2803f9e30ca9cf16b94bfa.tar.zst cuberite-7c60ad4856f5bc1eef2803f9e30ca9cf16b94bfa.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Blocks/BlockFire.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/Blocks/BlockFire.h b/source/Blocks/BlockFire.h index 36ec6bbb3..46b56d7e0 100644 --- a/source/Blocks/BlockFire.h +++ b/source/Blocks/BlockFire.h @@ -168,7 +168,7 @@ public: { return false; // Not valid slice, no portal can be formed } - } XZM = X1 - 2; // Set boundary of frame interior (hence the -2) + } XZP = X1 - 1; // Set boundary of frame interior, note that for some reason, the loop of X and the loop of Z go to different numbers, hence -1 here and -2 there for (X2; ((a_World->GetBlock(X2, Y, Z) == E_BLOCK_OBSIDIAN) || (a_World->GetBlock(X2, Y + 1, Z) == E_BLOCK_OBSIDIAN)); X2--) // Go the other direction (XM) { int Value = FindObsidianCeiling(X2, Y, Z, a_World, MaxY); @@ -182,7 +182,7 @@ public: { return false; } - } XZP = X2 + 2; // Set boundary, see previous + } XZM = X2 + 1; // Set boundary, see previous return (FoundFrameXP && FoundFrameXM); } |