mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-22 12:05:11 +00:00
Unconnected players are now hidden/intangible
This commit is contained in:
parent
f8bffd3b2a
commit
a67a06c17c
1 changed files with 10 additions and 0 deletions
|
@ -1852,6 +1852,16 @@ s32 execute_mario_action(UNUSED struct Object *o) {
|
||||||
if (Cheats.SuperSpeed && gMarioState->forwardVel > 0)
|
if (Cheats.SuperSpeed && gMarioState->forwardVel > 0)
|
||||||
gMarioState->forwardVel += 100;
|
gMarioState->forwardVel += 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// hide unconnected players
|
||||||
|
if (gNetworkPlayers[gMarioState->playerIndex].type != NPT_LOCAL) {
|
||||||
|
if (!gNetworkPlayers[gMarioState->playerIndex].connected) {
|
||||||
|
gMarioState->marioObj->header.gfx.node.flags |= GRAPH_RENDER_INVISIBLE;
|
||||||
|
gMarioState->marioObj->oIntangibleTimer = -1;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* End of cheat stuff
|
* End of cheat stuff
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue