diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-06-07 16:21:39 +0200 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-06-07 16:21:39 +0200 |
commit | b192dcec842cf043ae936c446bb252259b415ab5 (patch) | |
tree | d7c54847a22a63899eb515a67a3a74ae4ad90d38 /src/world/Block.cpp | |
parent | 2017-05-31 (diff) | |
download | AltCraft-b192dcec842cf043ae936c446bb252259b415ab5.tar AltCraft-b192dcec842cf043ae936c446bb252259b415ab5.tar.gz AltCraft-b192dcec842cf043ae936c446bb252259b415ab5.tar.bz2 AltCraft-b192dcec842cf043ae936c446bb252259b415ab5.tar.lz AltCraft-b192dcec842cf043ae936c446bb252259b415ab5.tar.xz AltCraft-b192dcec842cf043ae936c446bb252259b415ab5.tar.zst AltCraft-b192dcec842cf043ae936c446bb252259b415ab5.zip |
Diffstat (limited to '')
-rw-r--r-- | src/world/Block.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/world/Block.cpp b/src/world/Block.cpp index 74423e0..e88068a 100644 --- a/src/world/Block.cpp +++ b/src/world/Block.cpp @@ -2,16 +2,16 @@ Block::~Block() {} -Block::Block(unsigned short id, unsigned short state) : id(id), state(state) {} +Block::Block(unsigned short id, unsigned char state) : id(id), state(state) {} Block::Block() : id(0), state(0) {} bool operator<(const Block &lhs, const Block &rhs) { - if (lhs.id < rhs.id) - return true; - if (lhs.id == rhs.id) { - if (lhs.state != rhs.state) - return lhs.state < rhs.state; - } - return false; + if (lhs.id < rhs.id) + return true; + if (lhs.id == rhs.id) { + if (lhs.state != rhs.state) + return lhs.state < rhs.state; + } + return false; } |