diff options
Diffstat (limited to 'source/game/StarWorldTiles.cpp')
-rw-r--r-- | source/game/StarWorldTiles.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source/game/StarWorldTiles.cpp b/source/game/StarWorldTiles.cpp index 218339b..20ced8d 100644 --- a/source/game/StarWorldTiles.cpp +++ b/source/game/StarWorldTiles.cpp @@ -109,6 +109,22 @@ bool ServerTile::updateCollision(CollisionKind kind) { return false; } +PredictedTile::operator bool() const { + return + background + || backgroundHueShift + || backgroundColorVariant + || backgroundMod + || backgroundModHueShift + || foreground + || foregroundHueShift + || foregroundColorVariant + || foregroundMod + || foregroundModHueShift + || liquid + || collision; +} + DataStream& operator>>(DataStream& ds, NetTile& tile) { ds.read(tile.background); if (tile.background == 0) { |