mirror of
https://github.com/s4Ys369/CHEATERex.git
synced 2025-01-22 07:32:10 -05:00
warning suppression
This commit is contained in:
parent
7506c117b2
commit
0ed1a0cf84
1 changed files with 5 additions and 11 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue