Skip to content

Commit 15b74a8

Browse files
author
Colin Miller
committed
xScene Struct updated
1 parent c04a4e5 commit 15b74a8

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

src/SB/Core/x/xScene.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,15 @@ typedef const char* (*xSceneID2NameCallback)(U32);
1212
typedef xBase* (*xSceneResolvIDCallback)(U32);
1313
typedef xEnt* (*xSceneEntCallback)(xEnt* ent, xScene* sc, void* data);
1414

15-
struct xScene
15+
struct xScene // Updated Struct
1616
{
1717
U32 sceneID;
1818
U16 flags;
19-
U16 num_ents;
2019
U16 num_trigs;
2120
U16 num_stats;
2221
U16 num_dyns;
2322
U16 num_npcs;
2423
U16 num_act_ents;
25-
U16 num_nact_ents;
2624
F32 gravity;
2725
F32 drag;
2826
F32 friction;
@@ -36,7 +34,6 @@ struct xScene
3634
xEnt** dyns;
3735
xEnt** npcs;
3836
xEnt** act_ents;
39-
xEnt** nact_ents;
4037
xEnv* env;
4138
xMemPool mempool;
4239
xSceneResolvIDCallback resolvID;

src/SB/Core/x/xWad4.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,10 @@ void xSceneInit(xScene* sc, U16 num_trigs, U16 num_stats, U16 num_dyns, U16 num_
196196
sc->num_ents_allocd = (U32)num_trigs + (U32)num_stats + (U32)num_dyns + (U32)num_npcs;
197197
sc->num_act_ents = 0;
198198
sc->act_ents = (xEnt**)xMemAllocSize(sc->num_ents_allocd * sizeof(xEnt*));
199-
sc->num_nact_ents = 0;
200-
sc->num_ents = 0;
201199
sc->num_trigs = 0;
202200
sc->num_stats = 0;
201+
sc->num_dyns = 0;
202+
sc->num_npcs = 0;
203203

204204
sc->resolvID = NULL;
205205

@@ -208,7 +208,7 @@ void xSceneInit(xScene* sc, U16 num_trigs, U16 num_stats, U16 num_dyns, U16 num_
208208
xAnimPoolInit(&sc->mempool, 50, 1, 0x1, 4);
209209
xModelPoolInit(49, 64);
210210
xModelPoolInit(74, 8);
211-
xModelPoolInit(164, 1);
211+
xModelPoolInit(324, 1);
212212
}
213213

214214
// xQuickCull WEAK
@@ -3724,7 +3724,8 @@ S32 xPadUpdate(S32 idx, F32 time_passed)
37243724

37253725
if (p->flags & 0x10)
37263726
{
3727-
if (!(p->on & (XPAD_BUTTON_UP | XPAD_BUTTON_DOWN | XPAD_BUTTON_LEFT | XPAD_BUTTON_RIGHT)))
3727+
if (!(p->on &
3728+
(XPAD_BUTTON_UP | XPAD_BUTTON_DOWN | XPAD_BUTTON_LEFT | XPAD_BUTTON_RIGHT)))
37283729
{
37293730
p->d_timer = 0.0f;
37303731
}

0 commit comments

Comments
 (0)