From 27ebcc41b4e20d45e94ac1a08234bb6852df0097 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Mon, 13 Aug 2012 18:26:08 +0000 Subject: [PATCH] Hack for fake multimode/splitscreen: also draw mirrors from showview*. See the source for why this hack is ugly. git-svn-id: https://svn.eduke32.com/eduke32@2891 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/game.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index c4f9f26ed..28faae697 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -3414,7 +3414,16 @@ void G_HandleMirror(int32_t x, int32_t y, int32_t z, int32_t a, int32_t horiz, i visibility = j; } - gotpic[MIRROR>>3] &= ~(1<<(MIRROR&7)); + if (!g_fakeMultiMode) + { + // HACK for splitscreen mod: this is so that mirrors will be drawn + // from showview commands. Ugly, because we'll attempt do draw mirrors + // each frame then. But it's better than not drawing them, I guess. + // XXX: fix the sequence of setting/clearing this bit. Right now, + // we always draw one frame without drawing the mirror, after which + // the bit gets set and drawn subsequently. + gotpic[MIRROR>>3] &= ~(1<<(MIRROR&7)); + } } }