mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
a.m32: add 'moveselsects', moving them so that each sector's 1st pt is at (0,0).
git-svn-id: https://svn.eduke32.com/eduke32@4042 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
8b30baa3da
commit
6f4404860c
1 changed files with 20 additions and 0 deletions
|
@ -1520,6 +1520,26 @@ defstate listusedtags
|
|||
}
|
||||
ends
|
||||
|
||||
defstate moveselsects
|
||||
var p1 dx dy
|
||||
|
||||
for i selsectors
|
||||
{
|
||||
set p1 sector[i].wallptr
|
||||
set dx wall[p1].x, set dy wall[p1].y
|
||||
for j wallsofsector i
|
||||
{
|
||||
sub wall[j].x dx
|
||||
sub wall[j].y dy
|
||||
}
|
||||
for j spritesofsector i
|
||||
{
|
||||
sub .x dx
|
||||
sub .y dy
|
||||
}
|
||||
}
|
||||
ends
|
||||
|
||||
// This must be *compiled* with script_expertmode
|
||||
/*
|
||||
defstate setstartpos
|
||||
|
|
Loading…
Reference in a new issue