mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-24 00:02:43 +02:00
Decompile func0f0899dc
This commit is contained in:
1 parent
8dda164005
commit
62d2abd08f
3 files changed
+32
-57
No files matched your search
@@ -479,13 +479,12 @@ void objectiveCheckHolograph(f32 maxdist)
|
||||
|
||||
if (criteria->status == OBJECTIVE_INCOMPLETE) {
|
||||
struct defaultobj *obj = objFindByTagId(criteria->obj);
|
||||
u32 stack;
|
||||
|
||||
if (obj && obj->prop
|
||||
&& (obj->prop->flags & PROPFLAG_02)
|
||||
&& obj->prop->z >= 0
|
||||
&& objIsHealthy(obj)) {
|
||||
f32 sp9c[2];
|
||||
struct coord sp9c;
|
||||
f32 sp94[2];
|
||||
f32 sp8c[2];
|
||||
f32 dist = -1;
|
||||
@@ -497,10 +496,10 @@ void objectiveCheckHolograph(f32 maxdist)
|
||||
maxdist = maxdist * maxdist;
|
||||
}
|
||||
|
||||
if (dist < maxdist && func0f0899dc(obj->prop, sp9c, sp94, sp8c)) {
|
||||
if (dist < maxdist && func0f0899dc(obj->prop, &sp9c, sp94, sp8c)) {
|
||||
f32 sp78[2];
|
||||
f32 sp70[2];
|
||||
func0f06803c(sp9c, sp94, sp8c, sp78, sp70);
|
||||
func0f06803c(&sp9c, sp94, sp8c, sp78, sp70);
|
||||
|
||||
if (sp78[0] > currentPlayerGetScreenLeft()
|
||||
&& sp78[0] < currentPlayerGetScreenLeft() + currentPlayerGetScreenWidth()
|
||||
|
||||
Reference in new issue
Block a user