forked from Ports/perfect_dark
port: rename constants
This commit is contained in:
1 parent
c9a14f090b
commit
7580ebcaf9
2 files changed
+8
-8
No files matched your search
@@ -1189,19 +1189,19 @@ MenuItemHandlerResult menuhandlerMpAutoRandomWeapon(s32 operation, struct menuit
|
||||
case MENUOP_SET:
|
||||
g_MpSetup.options &= ~(MPOPTION_AUTORANDOMWEAPON_START | MPOPTION_AUTORANDOMWEAPON_END);
|
||||
|
||||
if (data->dropdown.value == AUTORANDOM_START) {
|
||||
if (data->dropdown.value == AUTORANDOMWEAPON_START) {
|
||||
g_MpSetup.options |= MPOPTION_AUTORANDOMWEAPON_START;
|
||||
} else if (data->dropdown.value == AUTORANDOM_END) {
|
||||
} else if (data->dropdown.value == AUTORANDOMWEAPON_END) {
|
||||
g_MpSetup.options |= MPOPTION_AUTORANDOMWEAPON_END;
|
||||
}
|
||||
break;
|
||||
case MENUOP_GETSELECTEDINDEX:
|
||||
if (g_MpSetup.options & MPOPTION_AUTORANDOMWEAPON_END) {
|
||||
data->dropdown.value = AUTORANDOM_END;
|
||||
data->dropdown.value = AUTORANDOMWEAPON_END;
|
||||
} else if (g_MpSetup.options & MPOPTION_AUTORANDOMWEAPON_START) {
|
||||
data->dropdown.value = AUTORANDOM_START;
|
||||
data->dropdown.value = AUTORANDOMWEAPON_START;
|
||||
} else {
|
||||
data->dropdown.value = AUTORANDOM_OFF;
|
||||
data->dropdown.value = AUTORANDOMWEAPON_OFF;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -3804,9 +3804,9 @@
|
||||
#define SLOWMOTION_ON 1
|
||||
#define SLOWMOTION_SMART 2
|
||||
|
||||
#define AUTORANDOM_OFF 0
|
||||
#define AUTORANDOM_START 1
|
||||
#define AUTORANDOM_END 2
|
||||
#define AUTORANDOMWEAPON_OFF 0
|
||||
#define AUTORANDOMWEAPON_START 1
|
||||
#define AUTORANDOMWEAPON_END 2
|
||||
|
||||
#define SMOKETYPE_NONE 0
|
||||
#define SMOKETYPE_ELECTRICAL 1 // Dr Caroll, mainframes in Infiltration bunker
|
||||
|
||||
Reference in new issue
Block a user