mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
everyone except host is luigi
This commit is contained in:
parent
8f4965e05d
commit
d4cdd89683
2 changed files with 2 additions and 2 deletions
|
|
@ -2123,7 +2123,7 @@ static void init_single_mario(struct MarioState* m) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// set mario/luigi model
|
// set mario/luigi model
|
||||||
enum CharacterType characterType = (gNetworkPlayers[0].globalIndex == 1) ? CT_LUIGI : CT_MARIO;
|
enum CharacterType characterType = (globalIndex == 0) ? CT_MARIO : CT_LUIGI;
|
||||||
m->character = &gCharacters[characterType];
|
m->character = &gCharacters[characterType];
|
||||||
m->marioObj->header.gfx.sharedChild = gLoadedGraphNodes[m->character->modelId];
|
m->marioObj->header.gfx.sharedChild = gLoadedGraphNodes[m->character->modelId];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -345,7 +345,7 @@ void network_receive_player(struct Packet* p) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// set model
|
// set model
|
||||||
enum CharacterType characterType = (np->globalIndex == 1) ? CT_LUIGI : CT_MARIO;
|
enum CharacterType characterType = (np->globalIndex == 0) ? CT_MARIO : CT_LUIGI;
|
||||||
m->character = &gCharacters[characterType];
|
m->character = &gCharacters[characterType];
|
||||||
m->marioObj->header.gfx.sharedChild = gLoadedGraphNodes[m->character->modelId];
|
m->marioObj->header.gfx.sharedChild = gLoadedGraphNodes[m->character->modelId];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue