mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 02:30:46 +00:00
Fix timing. Added comment to reverse changes incase we ever go to offsets.
git-svn-id: https://svn.eduke32.com/eduke32@712 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
9285600313
commit
9ed478a719
2 changed files with 8 additions and 5 deletions
|
@ -6914,7 +6914,7 @@ PALONLY:
|
|||
|
||||
if (t4)
|
||||
{
|
||||
l = *(((intptr_t *)t4)+2);
|
||||
l = *(((intptr_t *)t4)+2); //For TerminX: was *(int *)(t4+8)
|
||||
|
||||
#if defined(POLYMOST) && defined(USE_OPENGL)
|
||||
if (bpp > 8 && usemodels && md_tilehasmodel(s->picnum,t->pal) >= 0 && !(spriteext[i].flags&SPREXT_NOTMD))
|
||||
|
|
|
@ -7390,18 +7390,21 @@ void execute(int iActor,int iPlayer,int lDist)
|
|||
return;
|
||||
}
|
||||
|
||||
if (g_t[4])
|
||||
/* Qbix: Changed variables to be aware of the sizeof *insptr
|
||||
* (wether it is int vs intptr_t), Although it is specificly cast to intptr_t*
|
||||
* which might be corrected if the code is converted to use offsets */
|
||||
if (g_t[4])
|
||||
{
|
||||
g_sp->lotag += TICSPERFRAME;
|
||||
|
||||
if (g_sp->lotag > *(intptr_t *)(g_t[4]+16))
|
||||
if (g_sp->lotag > *(intptr_t *)(g_t[4]+4*sizeof(*insptr)))
|
||||
{
|
||||
g_t[2]++;
|
||||
g_sp->lotag = 0;
|
||||
g_t[3] += *(intptr_t *)(g_t[4]+12);
|
||||
g_t[3] += *(intptr_t *)(g_t[4]+3*sizeof(*insptr));
|
||||
}
|
||||
|
||||
if (klabs(g_t[3]) >= klabs(*(intptr_t *)(g_t[4]+4) * *(intptr_t *)(g_t[4]+12)))
|
||||
if (klabs(g_t[3]) >= klabs(*(intptr_t *)(g_t[4]+sizeof(*insptr)) * *(intptr_t *)(g_t[4]+3*sizeof(*insptr))))
|
||||
g_t[3] = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue