From 60e99868bebccd520f29284c34f90fcb22c036b9 Mon Sep 17 00:00:00 2001 From: Treeki Date: Sun, 2 Jun 2013 23:28:26 +0200 Subject: change a couple of wrong player id vars --- src/endingMgr.cpp | 2 +- src/poweruphax.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/endingMgr.cpp b/src/endingMgr.cpp index 09dfc3c..984b497 100644 --- a/src/endingMgr.cpp +++ b/src/endingMgr.cpp @@ -273,7 +273,7 @@ void dEndingMgr_c::executeState_ThanksPeach() { SE_VOC_KO2_SAVE_PRINCESS }; dPlayerModelHandler_c *pmh = (dPlayerModelHandler_c*)(((u32)player) + 0x2A60); - int voc = vocs[pmh->mdlClass->player_id_1]; + int voc = vocs[pmh->mdlClass->player_id_2]; nw4r::snd::SoundHandle handle; PlaySoundWithFunctionB4(SoundRelatedClass, &handle, voc, 1); diff --git a/src/poweruphax.cpp b/src/poweruphax.cpp index 1bb5dc8..9eb3682 100644 --- a/src/poweruphax.cpp +++ b/src/poweruphax.cpp @@ -53,7 +53,7 @@ void dHammerSuitRenderer_c::setup(dPlayerModelHandler_c *handler, int sceneID) { const char *shellNames[] = { "shell", "shell", "shell", "shell", "shell" }; - shell.setup(rf.GetResMdl(shellNames[victim->player_id_1]), &allocator, 0, 1, 0); + shell.setup(rf.GetResMdl(shellNames[victim->player_id_2]), &allocator, 0, 1, 0); SetupTextures_MapObj(&shell, sceneID); allocator.unlink(); -- cgit v1.2.3