From 6467b725017ed18f6f4624e7389a52ced9fa5437 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sun, 11 Mar 2012 13:54:21 +0100 Subject: [PATCH] Let Sid say death messages when he is a wingmate. --- code/messages.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/code/messages.cpp b/code/messages.cpp index 7ce9539..27cfa61 100644 --- a/code/messages.cpp +++ b/code/messages.cpp @@ -177,23 +177,19 @@ void getPlayerDeathMessage() return; } - char name[30], in[50]; int faceToUse = FACE_PHOEBE; - strcpy(name, "Phoebe"); - faceToUse = FACE_PHOEBE; - if (currentGame.hasWingMate2) + if ((currentGame.area == 9) || (currentGame.area == 17) || (currentGame.area == 25)) { + faceToUse = FACE_SID; + } + else if (currentGame.hasWingMate2) { if ((rand() % 2) == 0) - { - strcpy(name, "Ursula"); faceToUse = FACE_URSULA; - } } - sprintf(in, deathMessage[rand() % 6]); - setRadioMessage(faceToUse, in, 1); + setRadioMessage(faceToUse, deathMessage[rand() % 6], 1); } void getMissFireMessage(object *ally)