mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Merge branch 'master' into ExtraMercs
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
#include "builddefines.h"
|
||||
|
||||
#ifdef PRECOMPILEDHEADERS
|
||||
#include "TileEngine All.h"
|
||||
#else
|
||||
#include "physics.h"
|
||||
#include "wcheck.h"
|
||||
#include "isometric utils.h"
|
||||
@@ -22,7 +19,6 @@
|
||||
#include "Buildings.h"
|
||||
#include "Dialogue Control.h" // added by Flugente
|
||||
#include "Map Information.h" // added by Shadooow
|
||||
#endif
|
||||
#include "connect.h"
|
||||
#include "PATHAI.H"
|
||||
|
||||
@@ -1461,43 +1457,6 @@ BOOLEAN PhysicsMoveObject( REAL_OBJECT *pObject )
|
||||
|
||||
|
||||
|
||||
#if 0
|
||||
{
|
||||
LEVELNODE *pNode;
|
||||
INT32 sNewGridNo;
|
||||
|
||||
//Determine new gridno
|
||||
sNewGridNo = MAPROWCOLTOPOS( ( pObject->Position.y / CELL_Y_SIZE ), ( pObject->Position.x / CELL_X_SIZE ) );
|
||||
|
||||
// Look at old gridno
|
||||
if ( sNewGridNo != pObject->sGridNo )
|
||||
{
|
||||
// We're at a new gridno!
|
||||
|
||||
// First find levelnode of our object and delete
|
||||
pNode = gpWorldLevelData[ pObject->sGridNo ].pStructHead;
|
||||
|
||||
// LOOP THORUGH OBJECT LAYER
|
||||
while( pNode != NULL )
|
||||
{
|
||||
if ( pNode->uiFlags & LEVELNODE_PHYSICSOBJECT )
|
||||
{
|
||||
if ( pNode->iPhysicsObjectID == pObject->iID )
|
||||
{
|
||||
RemoveStruct( pObject->sGridNo, pNode->usIndex );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
pNode = ppNode->pNext;
|
||||
}
|
||||
|
||||
// Set new gridno, add
|
||||
}
|
||||
// Add new object / update position
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
void ObjectHitWindow( INT32 sGridNo, UINT16 usStructureID, BOOLEAN fBlowWindowSouth, BOOLEAN fLargeForce )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user