mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-25 23:55:20 -07:00
Always color in Double Defense
This commit is contained in:
parent
02a8ba8bb9
commit
37fe5491b2
1 changed files with 3 additions and 1 deletions
|
@ -400,7 +400,9 @@ void GetItem_Draw(GlobalContext* globalCtx, s16 drawId) {
|
||||||
* Uses the Custom Draw Function if it exists, or just calls `GetItem_Draw`
|
* Uses the Custom Draw Function if it exists, or just calls `GetItem_Draw`
|
||||||
*/
|
*/
|
||||||
void GetItemEntry_Draw(GlobalContext* globalCtx, GetItemEntry getItemEntry) {
|
void GetItemEntry_Draw(GlobalContext* globalCtx, GetItemEntry getItemEntry) {
|
||||||
if (getItemEntry.drawFunc != NULL && CVar_GetS32("gRandoMatchKeyColors", 0)) {
|
// RANDOTODO: Make this more flexible for easier toggling of individual item recolors in the future.
|
||||||
|
if (getItemEntry.drawFunc != NULL &&
|
||||||
|
(CVar_GetS32("gRandoMatchKeyColors", 0) || getItemEntry.getItemId == RG_DOUBLE_DEFENSE)) {
|
||||||
getItemEntry.drawFunc(globalCtx, &getItemEntry);
|
getItemEntry.drawFunc(globalCtx, &getItemEntry);
|
||||||
} else {
|
} else {
|
||||||
GetItem_Draw(globalCtx, getItemEntry.gid);
|
GetItem_Draw(globalCtx, getItemEntry.gid);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue