fix msgbox retrigger bug
parent
3853c53310
commit
c71ccf6d23
|
@ -30,6 +30,7 @@ void texed_draw_topbar(zpl_aabb2 r) {
|
||||||
if (new_pending && ctx.msgbox.result != -1) {
|
if (new_pending && ctx.msgbox.result != -1) {
|
||||||
new_pending = false;
|
new_pending = false;
|
||||||
if (ctx.msgbox.result == 2) {
|
if (ctx.msgbox.result == 2) {
|
||||||
|
ctx.msgbox.result = -1; // NOTE(zaklaus): ensure we don't re-trigger this branch next frame
|
||||||
texed_destroy();
|
texed_destroy();
|
||||||
texed_new(TD_DEFAULT_IMG_WIDTH, TD_DEFAULT_IMG_HEIGHT);
|
texed_new(TD_DEFAULT_IMG_WIDTH, TD_DEFAULT_IMG_HEIGHT);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue