small glass fix

This commit is contained in:
Nikolay Korolev 2020-10-25 20:53:05 +03:00
parent adfa2645bf
commit 3bdc974ff5
3 changed files with 6 additions and 6 deletions

View file

@ -668,7 +668,7 @@ CGlass::WindowRespondsToCollision(CEntity *entity, float amount, CVector speed,
object->bGlassBroken = true; object->bGlassBroken = true;
object->bIsVisible = false; object->bIsVisible = false;
object->bUsesCollision = true; object->bUsesCollision = false;
} }
void void
@ -868,11 +868,11 @@ CGlass::HasGlassBeenShatteredAtCoors(float x, float y, float z)
CWorld::AdvanceCurrentScanCode(); CWorld::AdvanceCurrentScanCode();
for ( int32 y = nStartY; y <= nEndY; y++ ) for ( int32 ys = nStartY; ys <= nEndY; ys++ )
{ {
for ( int32 x = nStartX; x <= nEndX; x++ ) for ( int32 xs = nStartX; xs <= nEndX; xs++ )
{ {
CSector *sector = CWorld::GetSector(x, y); CSector *sector = CWorld::GetSector(xs, ys);
ASSERT(sector != nil); ASSERT(sector != nil);

2
vendor/librw vendored

@ -1 +1 @@
Subproject commit ee2a32e142fa2d2a1bb6c4fed0c25c2f1e5a1129 Subproject commit 5e5a624681a268e759df53edc15a73f587fda6df

2
vendor/opusfile vendored

@ -1 +1 @@
Subproject commit f94a1764b0dcdd84ee8c13c040de9f4c1a67e4df Subproject commit 4174c26e0aaab19d01afdea0a46f7f95fdc6b3e6