Mapster32: print the "Saved board" message more persistently.

git-svn-id: https://svn.eduke32.com/eduke32@3659 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2013-04-09 17:35:14 +00:00
parent 7b6bf4dda2
commit 1773ac9276
2 changed files with 14 additions and 14 deletions

View file

@ -3604,6 +3604,8 @@ void overheadeditor(void)
if ((pointhighlight&16384)==0) if ((pointhighlight&16384)==0)
{ {
// If aiming at wall, check whether it is corrupt, and print a
// warning message near the mouse pointer if that is the case.
for (i=0; i<numcorruptthings; i++) for (i=0; i<numcorruptthings; i++)
if ((corruptthings[i]&CORRUPT_MASK)==CORRUPT_WALL && if ((corruptthings[i]&CORRUPT_MASK)==CORRUPT_WALL &&
(corruptthings[i]&(MAXWALLS-1))==pointhighlight) (corruptthings[i]&(MAXWALLS-1))==pointhighlight)
@ -7982,18 +7984,18 @@ static void SaveBoardAndPrintMessage(const char *fn)
if (f) if (f)
{ {
if (saveboard_fixedsprites) if (saveboard_fixedsprites)
printmessage16("Saved board %sto %s (changed sectnums of %d sprites).", message("Saved board %sto %s (changed sectnums of %d sprites).",
saveboard_savedtags?"and tags ":"", f, saveboard_fixedsprites); saveboard_savedtags?"and tags ":"", f, saveboard_fixedsprites);
else else
printmessage16("Saved board %sto %s.", saveboard_savedtags?"and tags ":"", f); message("Saved board %sto %s.", saveboard_savedtags?"and tags ":"", f);
} }
else else
{ {
if (saveboard_fixedsprites) if (saveboard_fixedsprites)
printmessage16("Saving board failed (changed sectnums of %d sprites).", message("^13SAVING BOARD FAILED (changed sectnums of %d sprites).",
saveboard_fixedsprites); saveboard_fixedsprites);
else else
printmessage16("Saving board failed."); message("^13SAVING BOARD FAILED.");
} }
} }

View file

@ -4982,7 +4982,7 @@ static void Keys3d(void)
{ {
while (num < 4) while (num < 4)
lines[num++][0] = 0; lines[num++][0] = 0;
Bsprintf(lines[num++],"^251%s",getmessage); Bsprintf(lines[num++], "^251%s", getmessage);
} }
begindrawing(); begindrawing();
@ -8070,7 +8070,9 @@ static void Keys2d(void)
{ {
case 0: case 0:
printmessage16("MAP LIMITS EXCEEDED!"); printmessage16("MAP LIMITS EXCEEDED!");
x = y = z = 0; /* fall-through */
default:
k = 0;
break; break;
case CORRUPT_SECTOR: case CORRUPT_SECTOR:
i = k&(MAXSECTORS-1); i = k&(MAXSECTORS-1);
@ -8093,10 +8095,6 @@ static void Keys2d(void)
y = sprite[i].y; y = sprite[i].y;
z = sprite[i].z; z = sprite[i].z;
break; break;
default:
k = 0;
x = y = z = 0;
break;
} }
if (k) if (k)
@ -11320,10 +11318,10 @@ void ExtCheckKeys(void)
{ \ { \
bad = max(bad, errlev); \ bad = max(bad, errlev); \
if (numcorruptthings>=MAXCORRUPTTHINGS) \ if (numcorruptthings>=MAXCORRUPTTHINGS) \
goto too_many_errors; \ goto too_many_errors; \
corruptthings[numcorruptthings++] = (what); \ corruptthings[numcorruptthings++] = (what); \
if (errlev >= printfromlev) \ if (errlev >= printfromlev) \
OSD_Printf_nowarn("#%d: " fmt "\n", numcorruptthings, ## __VA_ARGS__); \ OSD_Printf_nowarn("#%d: " fmt "\n", numcorruptthings, ## __VA_ARGS__); \
} while (0) } while (0)
#endif #endif
#ifdef YAX_ENABLE #ifdef YAX_ENABLE