mirror of
https://github.com/HarbourMasters/Starship
synced 2026-08-31 18:17:36 -04:00
Fixed more even things
This commit is contained in:
@@ -7,7 +7,7 @@ u16* Message_PtrFromId(u16 msgId) {
|
||||
|
||||
while (lookup->msgId != -1) {
|
||||
if (lookup->msgId == msgId) {
|
||||
return lookup->msgPtr;
|
||||
return lookup->path;
|
||||
}
|
||||
lookup++;
|
||||
}
|
||||
@@ -19,8 +19,14 @@ u16 Message_IdFromPtr(u16* msgPtr) {
|
||||
MsgLookup* lookup = (MsgLookup*) LOAD_ASSET(gMsgLookup);
|
||||
|
||||
while (lookup->msgPtr != NULL) {
|
||||
if (lookup->msgPtr == msgPtr) {
|
||||
return lookup->msgId;
|
||||
if(GameEngine_OTRSigCheck(msgPtr)){
|
||||
if(strcmp(((char*) msgPtr) + 7, lookup->path) == 0){
|
||||
return lookup->msgId;
|
||||
}
|
||||
} else {
|
||||
if (lookup->msgPtr == msgPtr) {
|
||||
return lookup->msgId;
|
||||
}
|
||||
}
|
||||
lookup++;
|
||||
}
|
||||
|
||||
@@ -57,9 +57,9 @@ void Radio_PlayMessage(u16* msg, RadioCharacterId character) {
|
||||
TeamId teamId;
|
||||
s32 pad;
|
||||
s32 priority;
|
||||
msg = LOAD_ASSET(msg);
|
||||
u16* lmsg = LOAD_ASSET(msg);
|
||||
|
||||
switch (msg[0]) {
|
||||
switch (lmsg[0]) {
|
||||
default:
|
||||
case MSGCHAR_PRI0:
|
||||
priority = 0;
|
||||
|
||||
Reference in New Issue
Block a user