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/core/AssetManager.hpp | |
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 'src/core/AssetManager.hpp')
-rw-r--r-- | src/core/AssetManager.hpp | 8 |
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; } }; |