Let Sid say death messages when he is a wingmate.

This commit is contained in:
Guus Sliepen 2012-03-11 13:54:21 +01:00
parent 3460884167
commit 6467b72501
1 changed files with 5 additions and 9 deletions

View File

@ -177,23 +177,19 @@ void getPlayerDeathMessage()
return; return;
} }
char name[30], in[50];
int faceToUse = FACE_PHOEBE; 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) if ((rand() % 2) == 0)
{
strcpy(name, "Ursula");
faceToUse = FACE_URSULA; faceToUse = FACE_URSULA;
} }
}
sprintf(in, deathMessage[rand() % 6]); setRadioMessage(faceToUse, deathMessage[rand() % 6], 1);
setRadioMessage(faceToUse, in, 1);
} }
void getMissFireMessage(object *ally) void getMissFireMessage(object *ally)