aboutsummaryrefslogtreecommitdiff
path: root/src/util/numeric.cpp
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2014-01-11 11:17:15 +0100
committerKahrl <kahrl@gmx.net>2014-01-11 19:47:16 +0100
commit6f6f289db4a14045b1053b065e9bbac3d3cb0f33 (patch)
treeead4bf334e4244db16abaa5368e026358bec799e /src/util/numeric.cpp
parent51e6feb17c5929c60b5e8b87cb02c0d22ddb6ff5 (diff)
downloadminetest-6f6f289db4a14045b1053b065e9bbac3d3cb0f33.tar.gz
minetest-6f6f289db4a14045b1053b065e9bbac3d3cb0f33.tar.bz2
minetest-6f6f289db4a14045b1053b065e9bbac3d3cb0f33.zip
Compare values instead of pointers in Inventory::operator==
Diffstat (limited to 'src/util/numeric.cpp')
0 files changed, 0 insertions, 0 deletions
; #include <string> struct TileSpec { TileSpec(): alpha(255) { } bool operator==(TileSpec &other) { return (spec == other.spec && alpha == other.alpha); } TextureSpec spec; u8 alpha; }; #if 0 struct TileSpec { TileSpec(): alpha(255) { } TileSpec(const std::string &a_name): name(a_name), alpha(255) { } TileSpec(const char *a_name): name(a_name), alpha(255) { } bool operator==(TileSpec &other) { return (name == other.name && alpha == other.alpha); } // path + mods std::string name; u8 alpha; }; #endif #endif