diff options
| author | Petr Mrázek | 2011-08-28 22:27:14 +0200 |
|---|---|---|
| committer | Petr Mrázek | 2011-08-28 22:27:14 +0200 |
| commit | 7d41a1d6f1e770012bfb412aed3ef9b06fd04723 (patch) | |
| tree | dfb01f63b7904d255d180f9628ea99130e7264c4 /SpriteObjects.cpp | |
| parent | af75c289789a979029cc06e0f00ffd8919c37844 (diff) | |
| download | stonesense-7d41a1d6f1e770012bfb412aed3ef9b06fd04723.tar.gz stonesense-7d41a1d6f1e770012bfb412aed3ef9b06fd04723.tar.bz2 stonesense-7d41a1d6f1e770012bfb412aed3ef9b06fd04723.tar.xz | |
Fix linux build, badly merged file
Diffstat (limited to 'SpriteObjects.cpp')
| -rw-r--r-- | SpriteObjects.cpp | 60 |
1 files changed, 44 insertions, 16 deletions
diff --git a/SpriteObjects.cpp b/SpriteObjects.cpp index 35babe1..2c47393 100644 --- a/SpriteObjects.cpp +++ b/SpriteObjects.cpp @@ -619,27 +619,55 @@ void c_sprite::draw_world_offset(int x, int y, int z, Block * b, int tileoffset, {
int foo = 0;
if(
- (snowmin <= b->snowlevel &&
- (snowmax == -1 || snowmax >= b->snowlevel)) &&
- (bloodmin <= b->bloodlevel && (bloodmax == -1 || bloodmax >= b->bloodlevel)) &&
- (mudmin <= b->mudlevel && (mudmax == -1 || mudmax >= b->mudlevel)) &&
- (grassmin <= b->grasslevel && (grassmax == -1 || grassmax >= b->grasslevel)) &&
- ((light==LIGHTANY) || ((light==LIGHTYES) && b->designation.bits.skyview) || ((light==LIGHTNO) && !(b->designation.bits.skyview))) &&//only bother with this tile if it's in the light, or not.
- ((grasstype == -1) || (grasstype == b->grassmat)) &&
(
- (grass_growth == GRASS_GROWTH_ANY) ||
+ snowmin <= b->snowlevel &&
+ (snowmax == -1 || snowmax >= b->snowlevel)
+ ) &&
(
- (grass_growth == GRASS_GROWTH_NORMAL) &&
- ((tileTypeTable[b->tileType].material == GRASS) || (tileTypeTable[b->tileType].material == GRASS2))
- ) ||
+ bloodmin <= b->bloodlevel &&
+ (bloodmax == -1 || bloodmax >= b->bloodlevel)
+ ) &&
(
- (grass_growth == GRASS_GROWTH_DRY) &&
- (tileTypeTable[b->tileType].material == GRASS_DRY)
- ) ||
+ mudmin <= b->mudlevel &&
+ (mudmax == -1 || mudmax >= b->mudlevel)
+ ) &&
(
- (grass_growth == GRASS_GROWTH_DEAD) &&
- (tileTypeTable[b->tileType].material == GRASS_DEAD)
+ grassmin <= b->grasslevel &&
+ (grassmax == -1 || grassmax >= b->grasslevel)
+ ) &&
+ //only bother with this tile if it's in the light, or not.
+ (
+ (light==LIGHTANY) ||
+ (
+ (light==LIGHTYES) && b->designation.bits.skyview
+ )
+ ||
+ (
+ (light==LIGHTNO) && !(b->designation.bits.skyview)
+ )
+ ) &&
+ (
+ (grasstype == -1) || (grasstype == b->grassmat)
+ ) &&
+ (
+ (grass_growth == GRASS_GROWTH_ANY) ||
+ (
+ (grass_growth == GRASS_GROWTH_NORMAL) &&
+ (
+ (tileTypeTable[b->tileType].material == GRASS) ||
+ (tileTypeTable[b->tileType].material == GRASS2)
+ )
+ ) ||
+ (
+ (grass_growth == GRASS_GROWTH_DRY) &&
+ (tileTypeTable[b->tileType].material == GRASS_DRY)
+ ) ||
+ (
+ (grass_growth == GRASS_GROWTH_DEAD) &&
+ (tileTypeTable[b->tileType].material == GRASS_DEAD)
+ )
)
+ )
{
int32_t drawx = x;
int32_t drawy = y;
|
