mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- Added GetPolyobjX and GetPolyobjY ACS functions.
SVN r2502 (trunk)
This commit is contained in:
parent
5d5f25fdab
commit
25cb3593ce
1 changed files with 23 additions and 0 deletions
|
@ -70,6 +70,7 @@
|
|||
#include "cmdlib.h"
|
||||
#include "m_png.h"
|
||||
#include "p_setup.h"
|
||||
#include "po_man.h"
|
||||
|
||||
#include "g_shared/a_pickups.h"
|
||||
|
||||
|
@ -3030,6 +3031,8 @@ enum EACSFunctions
|
|||
ACSF_SoundSequenceOnActor,
|
||||
ACSF_SoundSequenceOnSector,
|
||||
ACSF_SoundSequenceOnPolyobj,
|
||||
ACSF_GetPolyobjX,
|
||||
ACSF_GetPolyobjY,
|
||||
};
|
||||
|
||||
int DLevelScript::SideFromID(int id, int side)
|
||||
|
@ -3433,6 +3436,26 @@ int DLevelScript::CallFunction(int argCount, int funcIndex, SDWORD *args)
|
|||
}
|
||||
break;
|
||||
|
||||
case ACSF_GetPolyobjX:
|
||||
{
|
||||
FPolyObj *poly = PO_GetPolyobj(args[0]);
|
||||
if (poly != NULL)
|
||||
{
|
||||
return poly->StartSpot.x;
|
||||
}
|
||||
}
|
||||
return FIXED_MAX;
|
||||
|
||||
case ACSF_GetPolyobjY:
|
||||
{
|
||||
FPolyObj *poly = PO_GetPolyobj(args[0]);
|
||||
if (poly != NULL)
|
||||
{
|
||||
return poly->StartSpot.y;
|
||||
}
|
||||
}
|
||||
return FIXED_MAX;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue