summaryrefslogtreecommitdiffstats
path: root/src/world/Block.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/world/Block.cpp')
-rw-r--r--src/world/Block.cpp16
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;
}