m32script: if printext256's <col> arg is negative, use editorcolors[-<col>].

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
This commit is contained in:
helixhorned 2012-07-08 21:47:16 +00:00
parent 20da833bdb
commit e71c7cc2a8

View file

@ -2465,8 +2465,14 @@ badindex:
{ {
if (qsetmode == 200) if (qsetmode == 200)
{ {
if (col<0 || col>=256) col=0; if (col>=256)
if (backcol<0 || backcol>=256) backcol=-1; 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); printext256(x, y, col, backcol, quotetext, fontsize);
} }
} }