a.m32: add [']+[F] menu function setting xvel=1 on all sel. wall/floor sprites.

For sanitizing underwater sections, see r4166.
Also, don't print "Menu function executed successfully" when the function
printed something itself.

git-svn-id: https://svn.eduke32.com/eduke32@4169 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2013-11-19 19:00:02 +00:00
parent ffed49b395
commit bc54631888
2 changed files with 13 additions and 1 deletions

View File

@ -1540,6 +1540,18 @@ defstate moveselsects
}
ends
defstate sanitize_underwater_sprites
"Xvel=1 for wall/flr spr."
for i selsprites
{
set j .cstat
and j 49
ife j 17 set .xvel 1
ife j 33 set .xvel 1
}
printmessage16 "Set xvel=1 on highlighted wall/floor sprites"
ends
// This must be *compiled* with script_expertmode
/*
defstate setstartpos

View File

@ -13108,7 +13108,7 @@ static void FuncMenu(void)
if (vm.flags&VMFLAG_ERROR)
printmessage16("There were errors while executing the menu function");
else
else if (lastpm16time != totalclock)
printmessage16("Menu function executed successfully");
}