* Updated to ZDoom r2504:

- Added: If a PowerFlight item got a valid icon don't use the spinning wings for the HUD display
- Added Polyobj_MoveToSpot action specials. They are functionally identical to Polyobj_MoveTo but get the target coordinate from a map spot instead.
- Added GetPolyobjX and GetPolyobjY ACS functions.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@879 b0f79afe-0144-0410-b225-9a4edf0717df
This commit is contained in:
gez 2010-08-10 21:21:12 +00:00
parent 4a5f749642
commit 6f4410f6de
7 changed files with 61 additions and 14 deletions

View file

@ -120,7 +120,7 @@ protected:
fixed_t m_xTarget;
fixed_t m_yTarget;
friend bool EV_MovePolyTo(line_t *line, int polyNum, int speed, int x, int y, bool overRide);
friend bool EV_MovePolyTo(line_t *line, int polyNum, int speed, fixed_t x, fixed_t y, bool overRide);
};
@ -605,10 +605,8 @@ void DMovePolyTo::Tick ()
//
//==========================================================================
bool EV_MovePolyTo(line_t *line, int polyNum, int speed, int ix, int iy, bool overRide)
bool EV_MovePolyTo(line_t *line, int polyNum, int speed, fixed_t targx, fixed_t targy, bool overRide)
{
fixed_t targx = ix << FRACBITS;
fixed_t targy = iy << FRACBITS;
int mirror;
DMovePolyTo *pe;
FPolyObj *poly;