mirror of
https://github.com/td512/re3.git
synced 2026-02-05 14:24:35 +00:00
misc stuff, mostly collision
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include "patcher.h"
|
||||
#include "Building.h"
|
||||
#include "Treadable.h"
|
||||
#include "Train.h"
|
||||
#include "Pools.h"
|
||||
#include "Timer.h"
|
||||
#include "Camera.h"
|
||||
@@ -162,9 +163,33 @@ CCullZones::FindZoneWithStairsAttributeForPlayer(void)
|
||||
return nil;
|
||||
}
|
||||
|
||||
WRAPPER void
|
||||
void
|
||||
CCullZones::MarkSubwayAsInvisible(bool visible)
|
||||
{ EAXJMP(0x525AF0);
|
||||
{
|
||||
int i, n;
|
||||
CEntity *e;
|
||||
CVehicle *v;
|
||||
|
||||
n = CPools::GetBuildingPool()->GetSize();
|
||||
for(i = 0; i < n; i++){
|
||||
e = CPools::GetBuildingPool()->GetSlot(i);
|
||||
if(e && e->bIsSubway)
|
||||
e->bIsVisible = visible;
|
||||
}
|
||||
|
||||
n = CPools::GetTreadablePool()->GetSize();
|
||||
for(i = 0; i < n; i++){
|
||||
e = CPools::GetTreadablePool()->GetSlot(i);
|
||||
if(e && e->bIsSubway)
|
||||
e->bIsVisible = visible;
|
||||
}
|
||||
|
||||
n = CPools::GetVehiclePool()->GetSize();
|
||||
for(i = 0; i < n; i++){
|
||||
v = CPools::GetVehiclePool()->GetSlot(i);
|
||||
if(v && v->IsTrain() && ((CTrain*)v)->m_trackId != 0)
|
||||
v->bIsVisible = visible;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user