mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-24 00:02:43 +02:00
port: fix muzzle flashes on some guns
This commit is contained in:
1 parent
0cc29d2c99
commit
7666ccf2c7
1 file changed
+7
-1
@@ -341,13 +341,19 @@ static void preprocessModelNode(struct modelnode *node, u8 *base, u32 ofs)
|
||||
break;
|
||||
case MODELNODETYPE_STARGUNFIRE:
|
||||
PD_SWAP_VAL(ro->stargunfire.unk00);
|
||||
PD_SWAP_PTR(ro->stargunfire.vertices);
|
||||
PD_SWAP_PTR(ro->stargunfire.baseaddr);
|
||||
if (ro->stargunfire.gdl) {
|
||||
PD_SWAP_PTR(ro->stargunfire.gdl);
|
||||
preprocessGfx(PD_PTR_BASEOFS(ro->stargunfire.gdl, base, ofs), base, ofs);
|
||||
ro->stargunfire.gdl = SEGADDR(ro->stargunfire.gdl);
|
||||
}
|
||||
if (ro->stargunfire.vertices) {
|
||||
PD_SWAP_PTR(ro->stargunfire.vertices);
|
||||
Vtx *vtx = PD_PTR_BASEOFS(ro->stargunfire.vertices, base, ofs);
|
||||
for (s32 i = 0; i < 4 * ro->stargunfire.unk00; ++i, ++vtx) {
|
||||
preprocessVtx(vtx);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case MODELNODETYPE_HEADSPOT:
|
||||
PD_SWAP_VAL(ro->headspot.rwdataindex);
|
||||
|
||||
Reference in new issue
Block a user