mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-24 11:36:22 +00:00
HYPNO: redraw menu in spider after conversations
This commit is contained in:
parent
518c983d2b
commit
d2c43dd225
@ -28,11 +28,11 @@ namespace Hypno {
|
|||||||
|
|
||||||
// Actions
|
// Actions
|
||||||
|
|
||||||
void HypnoEngine::runMenu(Hotspots *hs) {
|
void HypnoEngine::runMenu(Hotspots *hs, bool only_menu) {
|
||||||
Hotspot *h = hs->begin();
|
Hotspot *h = hs->begin();
|
||||||
assert(h->type == MakeMenu);
|
assert(h->type == MakeMenu);
|
||||||
debugC(1, kHypnoDebugScene, "hotspot actions size: %d", h->actions.size());
|
debugC(1, kHypnoDebugScene, "hotspot actions size: %d", h->actions.size());
|
||||||
for (Actions::const_iterator itt = h->actions.begin(); itt != h->actions.end(); ++itt) {
|
for (Actions::const_iterator itt = h->actions.begin(); !only_menu && itt != h->actions.end(); ++itt) {
|
||||||
Action *action = *itt;
|
Action *action = *itt;
|
||||||
switch (action->type) {
|
switch (action->type) {
|
||||||
case QuitAction:
|
case QuitAction:
|
||||||
|
@ -173,7 +173,7 @@ public:
|
|||||||
void changeCursor(const Graphics::Surface &entry, byte *palette, bool centerCursor = false);
|
void changeCursor(const Graphics::Surface &entry, byte *palette, bool centerCursor = false);
|
||||||
|
|
||||||
// Actions
|
// Actions
|
||||||
void runMenu(Hotspots *hs);
|
void runMenu(Hotspots *hs, bool only_menu = false);
|
||||||
void runBackground(Background *a);
|
void runBackground(Background *a);
|
||||||
void runOverlay(Overlay *a);
|
void runOverlay(Overlay *a);
|
||||||
void runMice(Mice *a);
|
void runMice(Mice *a);
|
||||||
|
@ -365,6 +365,7 @@ void HypnoEngine::runScene(Scene *scene) {
|
|||||||
_nextParallelVideoToPlay.empty() &&
|
_nextParallelVideoToPlay.empty() &&
|
||||||
_videosPlaying.empty()) {
|
_videosPlaying.empty()) {
|
||||||
showConversation();
|
showConversation();
|
||||||
|
runMenu(stack.back(), true);
|
||||||
drawScreen();
|
drawScreen();
|
||||||
_refreshConversation = false;
|
_refreshConversation = false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user