Skip to content

Commit

Permalink
Revert "Destroy the hintstones on Citra as they cause huge lag" (#709)
Browse files Browse the repository at this point in the history
This reverts commit 4afa8e9.
  • Loading branch information
raphaelthegreat authored Dec 20, 2023
1 parent 3438023 commit 0c4d2a0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
2 changes: 0 additions & 2 deletions code/src/actor.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,6 @@ void Actor_Init() {

gActorOverlayTable[0x1D2].initInfo->update = (ActorFunc)ObjHamishi_rUpdate;

gActorOverlayTable[0x1D9].initInfo->update = EnHintstone_rUpdate;

// Define object 4 to be by default the same as object 189
strncpy(gObjectTable[OBJECT_CUSTOM_DOUBLE_DEFENSE].filename, gObjectTable[OBJECT_GI_HEARTS].filename, 0x40);

Expand Down
13 changes: 0 additions & 13 deletions code/src/actors/gossip_stone.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "gossip_stone.h"
#include "z3D/z3D.h"
#include "settings.h"

#define EnGs_Init_addr 0x16461C
#define EnGs_Init ((ActorFunc)EnGs_Init_addr)
Expand All @@ -20,15 +19,3 @@ void EnGs_rInit(Actor* thisx, GlobalContext* globalCtx) {

EnGs_Init(thisx, globalCtx);
}

#define EnHintstone_Update_addr 0x281834
#define EnHintstone_Update ((ActorFunc)EnHintstone_Update_addr)

void EnHintstone_rUpdate(Actor* thisx, GlobalContext* globalCtx) {
// Destroy the hintstones on Citra as they cause huge lag when entered
if (gSettingsContext.playOption == PLAY_ON_CITRA) {
Actor_Kill(thisx);
return;
}
EnHintstone_Update(thisx, globalCtx);
}
2 changes: 0 additions & 2 deletions code/src/actors/gossip_stone.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@

void EnGs_rInit(Actor* thisx, GlobalContext* globalCtx);

void EnHintstone_rUpdate(Actor* thisx, GlobalContext* globalCtx);

#endif //_GOSSIP_STONE_H_

0 comments on commit 0c4d2a0

Please sign in to comment.