summaryrefslogtreecommitdiffstats
path: root/src/core/AssetManager.hpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-06-07 16:21:39 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-06-07 16:21:39 +0200
commitb192dcec842cf043ae936c446bb252259b415ab5 (patch)
treed7c54847a22a63899eb515a67a3a74ae4ad90d38 /src/core/AssetManager.hpp
parent2017-05-31 (diff)
downloadAltCraft-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 'src/core/AssetManager.hpp')
-rw-r--r--src/core/AssetManager.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/AssetManager.hpp b/src/core/AssetManager.hpp
index b378764..ebb339f 100644
--- a/src/core/AssetManager.hpp
+++ b/src/core/AssetManager.hpp
@@ -33,12 +33,18 @@ struct BlockTextureId {
int state:4;
int side:3;
+
+
bool operator<(const BlockTextureId &rhs) const {
if (id < rhs.id)
return true;
if (rhs.id < id)
return false;
- return state < rhs.state;
+ if (state < rhs.state)
+ return true;
+ if (rhs.state < state)
+ return false;
+ return side < rhs.side;
}
};