mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-10-30 07:11:05 +00:00
Implement fix for flame thrower zero initialization bug.
This commit is contained in:
parent
11b5551cd0
commit
4721672282
1 changed files with 15 additions and 0 deletions
|
|
@ -292,3 +292,18 @@ PPC_FUNC(sub_82BD06C8)
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
|
|
||||||
|
#pragma region Object Bug Fixes
|
||||||
|
|
||||||
|
// CObjFlame::CObjFlame
|
||||||
|
// A field is not zero initialized,
|
||||||
|
// causing collisions to constantly get created
|
||||||
|
// and slow down the game.
|
||||||
|
PPC_FUNC_IMPL(__imp__sub_82608E60);
|
||||||
|
PPC_FUNC(sub_82608E60)
|
||||||
|
{
|
||||||
|
memset(base + ctx.r3.u32, 0, 0x154);
|
||||||
|
__imp__sub_82608E60(ctx, base);
|
||||||
|
}
|
||||||
|
|
||||||
|
#pragma endregion
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue