From e71c7cc2a8e2e622fca6de0b4c33646ba416e8a1 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sun, 8 Jul 2012 21:47:16 +0000 Subject: [PATCH] m32script: if printext256's arg is negative, use editorcolors[-]. The editor colors are the ones listed on page 9 of the Mapster32 built-in help. git-svn-id: https://svn.eduke32.com/eduke32@2816 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/m32exec.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/source/m32exec.c b/polymer/eduke32/source/m32exec.c index 795de25c3..051d9b4b2 100644 --- a/polymer/eduke32/source/m32exec.c +++ b/polymer/eduke32/source/m32exec.c @@ -2465,8 +2465,14 @@ badindex: { if (qsetmode == 200) { - if (col<0 || col>=256) col=0; - if (backcol<0 || backcol>=256) backcol=-1; + if (col>=256) + col=0; + else if (col < 0 && col >= -255) + col = editorcolors[-col]; + + if (backcol<0 || backcol>=256) + backcol=-1; + printext256(x, y, col, backcol, quotetext, fontsize); } }