diff options
author | Mattes D <github@xoft.cz> | 2015-05-09 09:25:09 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-05-09 12:58:54 +0200 |
commit | c13b1931ff26a5643c9fe68ab32b1e362cfacd70 (patch) | |
tree | 0c19db714a5dd08eb2775b39487e96cf317cf867 /src/Blocks/BlockRail.h | |
parent | Rabbit and cooked rabbit now stackable (diff) | |
download | cuberite-c13b1931ff26a5643c9fe68ab32b1e362cfacd70.tar cuberite-c13b1931ff26a5643c9fe68ab32b1e362cfacd70.tar.gz cuberite-c13b1931ff26a5643c9fe68ab32b1e362cfacd70.tar.bz2 cuberite-c13b1931ff26a5643c9fe68ab32b1e362cfacd70.tar.lz cuberite-c13b1931ff26a5643c9fe68ab32b1e362cfacd70.tar.xz cuberite-c13b1931ff26a5643c9fe68ab32b1e362cfacd70.tar.zst cuberite-c13b1931ff26a5643c9fe68ab32b1e362cfacd70.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockRail.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Blocks/BlockRail.h b/src/Blocks/BlockRail.h index 02fe3aa95..a2e27a351 100644 --- a/src/Blocks/BlockRail.h +++ b/src/Blocks/BlockRail.h @@ -502,11 +502,11 @@ public: // Save powered rail flag. NIBBLETYPE OtherMeta = a_Meta & 0x08; // Rotates according to table; 0x07 == 0111. - // Rails can either be flat (North/South) or Ascending (Asc. East) + // Rails can either be flat (North / South) or Ascending (Asc. East) switch (a_Meta & 0x07) { - case 0x00: return 0x01 + OtherMeta; // North/South -> East/West - case 0x01: return 0x00 + OtherMeta; // East/West -> North/South + case 0x00: return 0x01 + OtherMeta; // North / South -> East / West + case 0x01: return 0x00 + OtherMeta; // East / West -> North / South case 0x02: return 0x04 + OtherMeta; // Asc. East -> Asc. North case 0x04: return 0x03 + OtherMeta; // Asc. North -> Asc. West @@ -538,11 +538,11 @@ public: // Save powered rail flag. NIBBLETYPE OtherMeta = a_Meta & 0x08; // Rotates according to table; 0x07 == 0111. - // Rails can either be flat (North/South) or Ascending (Asc. East) + // Rails can either be flat (North / South) or Ascending (Asc. East) switch (a_Meta & 0x07) { - case 0x00: return 0x01 + OtherMeta; // North/South -> East/West - case 0x01: return 0x00 + OtherMeta; // East/West -> North/South + case 0x00: return 0x01 + OtherMeta; // North / South -> East / West + case 0x01: return 0x00 + OtherMeta; // East / West -> North / South case 0x02: return 0x05 + OtherMeta; // Asc. East -> Asc. South case 0x05: return 0x03 + OtherMeta; // Asc. South -> Asc. West @@ -574,7 +574,7 @@ public: // Save powered rail flag. NIBBLETYPE OtherMeta = a_Meta & 0x08; // Mirrors according to table; 0x07 == 0111. - // Rails can either be flat (North/South) or Ascending (Asc. East) + // Rails can either be flat (North / South) or Ascending (Asc. East) switch (a_Meta & 0x07) { case 0x05: return 0x04 + OtherMeta; // Asc. South -> Asc. North @@ -605,7 +605,7 @@ public: // Save powered rail flag. NIBBLETYPE OtherMeta = a_Meta & 0x08; // Mirrors according to table; 0x07 == 0111. - // Rails can either be flat (North/South) or Ascending (Asc. East) + // Rails can either be flat (North / South) or Ascending (Asc. East) switch (a_Meta & 0x07) { case 0x02: return 0x03 + OtherMeta; // Asc. East -> Asc. West |