mirror of https://github.com/sm64pc/sm64pc.git
Level reset cheat: fix object respawn issue
This commit is contained in:
parent
36b08eab1b
commit
4e4c307c83
|
@ -19,6 +19,7 @@
|
|||
#include "platform_displacement.h"
|
||||
#include "profiler.h"
|
||||
#include "spawn_object.h"
|
||||
#include "pc/cheats.h"
|
||||
|
||||
|
||||
/**
|
||||
|
@ -409,6 +410,18 @@ void set_object_respawn_info_bits(struct Object *obj, u8 bits) {
|
|||
u32 *info32;
|
||||
u16 *info16;
|
||||
|
||||
/* Level reset cheat */
|
||||
/*
|
||||
* Force objects to respawn on level reset
|
||||
*
|
||||
* NOTE: This forces objects to respawn in cases where they wouldn't with
|
||||
* the cheat disabled. The GameShark code also has this problem.
|
||||
*/
|
||||
if (Cheats.LevelReset && Cheats.EnableCheats) {
|
||||
return;
|
||||
}
|
||||
/* End of level reset cheat */
|
||||
|
||||
switch (obj->respawnInfoType) {
|
||||
case RESPAWN_INFO_TYPE_32:
|
||||
info32 = (u32 *) obj->respawnInfo;
|
||||
|
|
Loading…
Reference in New Issue