summaryrefslogtreecommitdiff
path: root/src/poweruphax.cpp
diff options
context:
space:
mode:
authorColin Noga <Tempus@chronometry.ca>2013-05-22 14:19:35 -0500
committerColin Noga <Tempus@chronometry.ca>2013-05-22 14:19:35 -0500
commit77b1f261686cbec9593656f404d059d9fdc6fe7f (patch)
treecdef7813fb41785de54da77ac2a7924e90a34c3f /src/poweruphax.cpp
parentd3b2d9fd92ede02ae06232c92e830e5819104f6e (diff)
parenta165a5fd2e8bd9ce78e7f67e410ad26f4ef87a49 (diff)
downloadkamek-77b1f261686cbec9593656f404d059d9fdc6fe7f.tar.gz
kamek-77b1f261686cbec9593656f404d059d9fdc6fe7f.zip
Merge branch 'level-select' of ssh://treeki.rustedlogic.net:30000/Kamek into level-select
Diffstat (limited to '')
-rw-r--r--src/poweruphax.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/poweruphax.cpp b/src/poweruphax.cpp
index f2895de..1bb5dc8 100644
--- a/src/poweruphax.cpp
+++ b/src/poweruphax.cpp
@@ -45,8 +45,8 @@ void dHammerSuitRenderer_c::setup(dPlayerModelHandler_c *handler, int sceneID) {
nw4r::g3d::ResFile rf(getResource("hammerM", "g3d/suit.brres"));
- if (victim->player_id_1 <= 1) {
- helmet.setup(rf.GetResMdl((victim->player_id_1 == 0) ? "marioHelmet" : "luigiHelmet"), &allocator, 0, 1, 0);
+ if (victim->player_id_2 <= 1) {
+ helmet.setup(rf.GetResMdl((victim->player_id_2 == 0) ? "marioHelmet" : "luigiHelmet"), &allocator, 0, 1, 0);
SetupTextures_MapObj(&helmet, sceneID);
}
@@ -64,7 +64,7 @@ void dHammerSuitRenderer_c::setup(dPlayerModelHandler_c *handler, int sceneID) {
(nw4r::g3d::ResMdl*)(((u32)victimModel->scnObj) + 0xE8);
//headNodeID = playerResMdl->GetResNode("player_head").GetID();
- if (victim->player_id_1 <= 1)
+ if (victim->player_id_2 <= 1)
headNodeID = playerResMdl->GetResNode("face_1").GetID();
rootNodeID = playerResMdl->GetResNode("skl_root").GetID();
}
@@ -73,7 +73,7 @@ void dHammerSuitRenderer_c::draw() {
if (victim->powerup_id != 7)
return;
- if (victim->player_id_1 <= 1) {
+ if (victim->player_id_2 <= 1) {
// Materials: 2=hair 3=hat; Modes: BACK=visible ALL=invisible
SetCullModeForMaterial(&victim->getCurrentModel()->head, 3, GX_CULL_ALL);