Correct inheritance for TPinballComponent, TCollisionComponent.
This commit is contained in:
1 parent
a1678120f8
commit
62a63bbf2e
33 files changed
+282
-252
No files matched your search
@@ -5,7 +5,7 @@
|
||||
#include "TPinballTable.h"
|
||||
|
||||
|
||||
TCollisionComponent::TCollisionComponent(TPinballTable* table, int groupIndex, int someFlag) : TPinballComponent(
|
||||
TCollisionComponent::TCollisionComponent(TPinballTable* table, int groupIndex, bool createWall) : TPinballComponent(
|
||||
table, groupIndex, true)
|
||||
{
|
||||
visualStruct visual{};
|
||||
@@ -21,9 +21,9 @@ TCollisionComponent::TCollisionComponent(TPinballTable* table, int groupIndex, i
|
||||
else
|
||||
{
|
||||
loader::query_visual(groupIndex, 0, &visual);
|
||||
if (someFlag)
|
||||
if (createWall)
|
||||
{
|
||||
float offset = table->UnknownP61F;
|
||||
float offset = table->CollisionCompOffset;
|
||||
float* floatArr = loader::query_float_attribute(groupIndex, 0, 600);
|
||||
TEdgeSegment::install_wall(floatArr, this, &UnknownBaseFlag2, visual.Flag, offset, 0);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user