Permalink
Browse files

Fix FEAT_SKYSCRAPER features on TER_CLIFFFACE tiles remaining as bloc…

…king for air units even after being destroyed.
  • Loading branch information...
Cyp committed Feb 24, 2011
1 parent dfcd165 commit 2817c7142b4b83e67f99d0c8f4fceb91a4b048cc
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/feature.cpp
View
@@ -1,7 +1,7 @@
/*
This file is part of Warzone 2100.
Copyright (C) 1999-2004 Eidos Interactive
- Copyright (C) 2005-2010 Warzone 2100 Project
+ Copyright (C) 2005-2011 Warzone 2100 Project
Warzone 2100 is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -573,6 +573,7 @@ bool destroyFeature(FEATURE *psDel)
{
/* This remains a blocking tile */
psTile->psObject = NULL;
+ auxClearBlocking(mapX + width, mapY + breadth, AIR_BLOCKED); // Shouldn't remain blocking for air units, however.
psTile->texture = TileNumber_texture(psTile->texture) | BLOCKING_RUBBLE_TILE;
}
}

0 comments on commit 2817c71

Please sign in to comment.