Fix holodisk highlighting
This commit is contained in:
parent
1694c68ebc
commit
0cab26227a
|
@ -348,6 +348,7 @@ int gPipboyWindow;
|
||||||
// 0x6644C8
|
// 0x6644C8
|
||||||
CacheEntry* gPipboyFrmHandles[PIPBOY_FRM_COUNT];
|
CacheEntry* gPipboyFrmHandles[PIPBOY_FRM_COUNT];
|
||||||
|
|
||||||
|
// 0x6644F4
|
||||||
int _holodisk;
|
int _holodisk;
|
||||||
|
|
||||||
// 0x6644F8
|
// 0x6644F8
|
||||||
|
@ -932,7 +933,9 @@ static void pipboyWindowHandleStatus(int a1)
|
||||||
PIPBOY_WINDOW_WIDTH,
|
PIPBOY_WINDOW_WIDTH,
|
||||||
gPipboyWindowBuffer + PIPBOY_WINDOW_WIDTH * PIPBOY_WINDOW_CONTENT_VIEW_Y + PIPBOY_WINDOW_CONTENT_VIEW_X,
|
gPipboyWindowBuffer + PIPBOY_WINDOW_WIDTH * PIPBOY_WINDOW_CONTENT_VIEW_Y + PIPBOY_WINDOW_CONTENT_VIEW_X,
|
||||||
PIPBOY_WINDOW_WIDTH);
|
PIPBOY_WINDOW_WIDTH);
|
||||||
pipboyWindowRenderHolodiskList(_holodisk);
|
// CE: Fix highlighting holodisk (on par with quest highlighting
|
||||||
|
// approach).
|
||||||
|
pipboyWindowRenderHolodiskList(a1);
|
||||||
pipboyWindowRenderQuestLocationList(-1);
|
pipboyWindowRenderQuestLocationList(-1);
|
||||||
windowRefreshRect(gPipboyWindow, &gPipboyWindowContentRect);
|
windowRefreshRect(gPipboyWindow, &gPipboyWindowContentRect);
|
||||||
coreDelayProcessingEvents(200);
|
coreDelayProcessingEvents(200);
|
||||||
|
@ -1387,7 +1390,9 @@ static int pipboyWindowRenderHolodiskList(int a1)
|
||||||
HolodiskDescription* holodisk = &(gHolodiskDescriptions[index]);
|
HolodiskDescription* holodisk = &(gHolodiskDescriptions[index]);
|
||||||
if (gGameGlobalVars[holodisk->gvar] != 0) {
|
if (gGameGlobalVars[holodisk->gvar] != 0) {
|
||||||
int color;
|
int color;
|
||||||
if ((gPipboyCurrentLine - 2) / 2 == a1) {
|
// CE: Fix highlighting holodisk (on par with quest highlighting
|
||||||
|
// approach).
|
||||||
|
if ((gPipboyCurrentLine - 1) / 2 == a1 - 1) {
|
||||||
color = _colorTable[32747];
|
color = _colorTable[32747];
|
||||||
} else {
|
} else {
|
||||||
color = _colorTable[992];
|
color = _colorTable[992];
|
||||||
|
|
Loading…
Reference in New Issue