TINSEL: Map ACTORPRIORITY

This commit is contained in:
Einar Johan Trøan Sømåen 2021-03-01 22:14:11 +01:00
parent ee57db6c75
commit e31fbf6766
No known key found for this signature in database
GPG Key ID: E78D26458077C9C5

View File

@ -4199,6 +4199,11 @@ NoirMapping translateNoirLibCode(int libCode, int32 *pp) {
// this is convenient for debug.
NoirMapping mapping;
switch (libCode) {
case 3:
mapping = NoirMapping{"ACTORPRIORITY", ACTORPRIORITY, 2};
pp -= mapping.numArgs - 1;
debug(7, "%s(%d, 0x%08X)", mapping.name, pp[0], pp[1]);
break;
case 5:
mapping = NoirMapping{"ACTORRGB", ACTORRGB, 2};
pp -= mapping.numArgs - 1;
@ -4474,7 +4479,7 @@ int CallLibraryRoutine(CORO_PARAM, int operand, int32 *pp, const INT_CONTEXT *pi
return -3;
case ACTORPRIORITY:
// DW2 only
// DW2 / Noir
pp -= 1; // 2 parameters
ActorPriority(pp[0], pp[1]);
return -2;