warning suppression

This commit is contained in:
$4Y$ 2021-01-10 03:18:17 -05:00
parent 7506c117b2
commit 0ed1a0cf84

View file

@ -63,6 +63,11 @@
#include "pc/configfile.h"
#include "pc/cheats.h"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#pragma GCC diagnostic ignored "-Wincompatible-pointer-types"
#pragma GCC diagnostic ignored "-Wimplicit-function-declaration"
#pragma GCC diagnostic ignored "-Wdiscarded-qualifiers"
#define SwiftSwim 42.0f
/*SwiftSwim Cheat*/
@ -1555,17 +1560,6 @@ void cheats_mario_inputs(struct MarioState *m) {
break;
}
/*This check should be added when creating a spawn cheat to prevent spamming*/
// struct Object *obj = (struct Object *) gObjectLists[OBJ_LIST_LEVEL].next;
// struct Object *first = (struct Object *) &gObjectLists[OBJ_LIST_LEVEL];
// while (obj != NULL && obj != first) {
// if (obj->header.gfx.sharedChild = gLoadedGraphNodes[MODEL_KOOPA_SHELL]) {
// obj_mark_for_deletion(obj);
// break;
// }
// obj = (struct Object *) obj->header.next;
//}
if ((m->action & ACT_GROUP_MASK) == ACT_GROUP_SUBMERGED) {
spawn_object_relative(0, 0, 100, 100, gCurrentObject, MODEL_KOOPA_SHELL,
bhvKoopaShellUnderwater);