Newly placed tanks now drag away old wreckage if present

Console line input only backspaces to beginning of line

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1050 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Overhaul
2007-07-14 08:09:59 +00:00
parent 99e45d697e
commit 7384ae7268
2 changed files with 27 additions and 13 deletions
+19
View File
@@ -45,6 +45,7 @@
#include "MessageBoxScreen.h"
#include "screenids.h"
#include "SaveLoadScreen.h"
#include "Rotting Corpses.h"
#endif
#include "Map Edgepoints.h"
@@ -537,6 +538,24 @@ BOOLEAN AddPlacementToWorld( SOLDIERINITNODE *curr )
//memset( &tempDetailedPlacement, 0, SIZEOF_SOLDIERCREATE_STRUCT );
tempDetailedPlacement.initialize();
if (curr->pBasicPlacement->bBodyType == TANK_NW ||
curr->pBasicPlacement->bBodyType == TANK_NE)
{
while (1)
{
ROTTING_CORPSE *pCorpse = GetCorpseAtGridNo( curr->pBasicPlacement->usStartingGridNo, 0); // I assume we don't find tanks on the roof
if (pCorpse)
{
// Assume this is a dead tank and have the replacement tank haul it away
RemoveCorpse( pCorpse->iID);
}
else
{
break;
}
}
}
DebugMsg(TOPIC_JA2,DBG_LEVEL_3,String("AddPlacementToWorld: decide on placement"));
if( curr->pDetailedPlacement )
{