mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 11:10:39 +00:00
EVENT_MOVESECTOR. This isn't enough to really do anything with yet--more to come.
git-svn-id: https://svn.eduke32.com/eduke32@5578 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
180d33c66e
commit
d30efa9a0a
3 changed files with 5 additions and 1 deletions
|
@ -748,9 +748,11 @@ static int32_t move_rotfixed_sprite(int32_t j, int32_t pivotspr, int32_t daang)
|
||||||
static void A_MoveSector(int i)
|
static void A_MoveSector(int i)
|
||||||
{
|
{
|
||||||
// T1,T2 and T3 are used for all the sector moving stuff!!!
|
// T1,T2 and T3 are used for all the sector moving stuff!!!
|
||||||
|
|
||||||
spritetype * const s = &sprite[i];
|
spritetype * const s = &sprite[i];
|
||||||
|
int32_t p, pl = A_FindPlayer(s, &p);
|
||||||
|
int const k = VM_OnEventWithBoth(EVENT_MOVESECTOR, i, pl, p, T3);
|
||||||
int j = T2;
|
int j = T2;
|
||||||
int const k = T3;
|
|
||||||
|
|
||||||
s->x += (s->xvel * (sintable[(s->ang + 512) & 2047])) >> 14;
|
s->x += (s->xvel * (sintable[(s->ang + 512) & 2047])) >> 14;
|
||||||
s->y += (s->xvel * (sintable[s->ang & 2047])) >> 14;
|
s->y += (s->xvel * (sintable[s->ang & 2047])) >> 14;
|
||||||
|
|
|
@ -120,6 +120,7 @@ enum GameEvent_t {
|
||||||
EVENT_DISPLAYSCUBA,
|
EVENT_DISPLAYSCUBA,
|
||||||
EVENT_DISPLAYTIP,
|
EVENT_DISPLAYTIP,
|
||||||
EVENT_DISPLAYACCESS,
|
EVENT_DISPLAYACCESS,
|
||||||
|
EVENT_MOVESECTOR,
|
||||||
#ifdef LUNATIC
|
#ifdef LUNATIC
|
||||||
EVENT_ANIMATEALLSPRITES,
|
EVENT_ANIMATEALLSPRITES,
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -696,6 +696,7 @@ const char *EventNames[MAXEVENTS] =
|
||||||
"EVENT_DISPLAYSCUBA",
|
"EVENT_DISPLAYSCUBA",
|
||||||
"EVENT_DISPLAYTIP",
|
"EVENT_DISPLAYTIP",
|
||||||
"EVENT_DISPLAYACCESS",
|
"EVENT_DISPLAYACCESS",
|
||||||
|
"EVENT_MOVESECTOR",
|
||||||
#ifdef LUNATIC
|
#ifdef LUNATIC
|
||||||
"EVENT_ANIMATEALLSPRITES",
|
"EVENT_ANIMATEALLSPRITES",
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue