Skip to content

Commit

Permalink
Add Hackio's initilizeMapObjActorWithColorAndTexChange
Browse files Browse the repository at this point in the history
  • Loading branch information
bavario-lginc authored May 30, 2024
1 parent e047b5c commit 455bae1
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions PTD/VanillaBugfixes/source/VanillaBugfixes.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "syati.h"

/*
* Author: Aurum
* Author: Aurum, Super Hackio
*/

namespace pt {
Expand Down Expand Up @@ -68,10 +68,19 @@ namespace pt {


void killSamboHeadIfInWater(LiveActor* pActor) {
if (MR::isInWater(pActor->mTranslation) || MR::isBindedGroundSinkDeath(pActor))
pActor->kill();
}

kmCall(0x801F8290, killSamboHeadIfInWater);
if (MR::isInWater(pActor->mTranslation) || MR::isBindedGroundSinkDeath(pActor))
pActor->kill();
}
kmCall(0x801F8290, killSamboHeadIfInWater);

/*****************************************************************************************************************/
/* Fix certain MapParts from not taking ColorChange/TexChange. */
/*****************************************************************************************************************/
void initilizeMapObjActorWithColorAndTexChange(MapObjActor* pActor, const JMapInfoIter& rIter, MapObjActorInitInfo& rInfo) {
MapObjActorUtil::setupInitInfoColorChangeArg0(&rInfo, rIter);
MapObjActorUtil::setupInitInfoTextureChangeArg1(&rInfo, rIter);
pActor->initialize(rIter, rInfo);
}
kmCall(0x802E99E8, initilizeMapObjActorWithColorAndTexChange);
}
}

0 comments on commit 455bae1

Please sign in to comment.