From 0ba41006cf45105818c1fdd9f28406a293d00789 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Sat, 11 Jan 2020 13:52:51 +1000 Subject: [PATCH] Attempt to decompile scenarioPacHighlight --- src/game/game_176d70.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/game/game_176d70.c b/src/game/game_176d70.c index 3a24333cc..3846856a7 100644 --- a/src/game/game_176d70.c +++ b/src/game/game_176d70.c @@ -14149,6 +14149,23 @@ glabel scenarioPacHighlight /* f1845b8: 00000000 */ sll $zero,$zero,0x0 ); +//bool scenarioPacHighlight(struct prop *prop, u32 *colour) +//{ +// if ((g_MpSetup.options & MPOPTION_HIGHLIGHTTARGET) && +// (prop->type == PROPTYPE_PLAYER || prop->type == PROPTYPE_CHR) && +// g_ScenarioData.pac.victimindex != -1 && +// prop->chr == g_MpPlayerChrs[g_ScenarioData.pac.victims[g_ScenarioData.pac.victimindex]]) { +// colour[0] = 0; +// colour[1] = 0xff; +// colour[2] = 0; +// colour[3] = 0x40; +// +// return true; +// } +// +// return false; +//} + GLOBAL_ASM( glabel func0f1845bc /* f1845bc: 3c02800b */ lui $v0,%hi(g_ScenarioData)