mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-31 04:20:42 +00:00
- SpriteWarpToSurface
This commit is contained in:
parent
54cf1aea6f
commit
f45e6317ab
1 changed files with 1 additions and 4 deletions
|
@ -16826,11 +16826,8 @@ bool SpriteWarpToSurface(DSWActor* actor)
|
|||
if (!Found) return false;
|
||||
|
||||
// get the offset from the under sprite
|
||||
sx = underActor->int_pos().X - actor->int_pos().X;
|
||||
sy = underActor->int_pos().Y - actor->int_pos().Y;
|
||||
|
||||
// update to the new x y position
|
||||
actor->set_int_xy(overActor->int_pos().X - sx, overActor->int_pos().Y - sy);
|
||||
actor->spr.pos += overActor->spr.pos.XY() - underActor->spr.pos.XY();
|
||||
|
||||
auto over = overActor->sector();
|
||||
auto under = underActor->sector();
|
||||
|
|
Loading…
Reference in a new issue