mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 02:30:46 +00:00
Delete maphack lights when changing from Polymer to another renderer.
This fixes a crash when loading a map afterwards. Tweak a few debugging messages and some whitespace. git-svn-id: https://svn.eduke32.com/eduke32@2068 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
f08610b6c8
commit
6cfdc2b376
4 changed files with 11 additions and 5 deletions
|
@ -457,7 +457,7 @@ void yax_update(int32_t resetstat)
|
|||
yax_getbunches(i, &cb, &fb);
|
||||
if (cb>=0)
|
||||
yax_setbunch(i, YAX_CEILING, bunchmap[cb]);
|
||||
if (fb>=0)
|
||||
if (fb>=0)
|
||||
yax_setbunch(i, YAX_FLOOR, bunchmap[fb]);
|
||||
}
|
||||
}
|
||||
|
@ -15831,6 +15831,7 @@ int32_t setrendermode(int32_t renderer)
|
|||
}
|
||||
else if (rendmode==4) // going from Polymer to another renderer
|
||||
{
|
||||
delete_maphack_lights();
|
||||
G_Polymer_UnInit();
|
||||
polymer_uninit();
|
||||
}
|
||||
|
|
|
@ -1995,7 +1995,7 @@ static int32_t md3draw(md3model_t *m, spritetype *tspr)
|
|||
m->cframe < 0 || m->cframe >= m->numframes ||
|
||||
m->nframe < 0 || m->nframe >= m->numframes)
|
||||
{
|
||||
OSD_Printf("Model frame out of bounds!\n");
|
||||
OSD_Printf("%s: Model frame out of bounds!\n", m->head.nam);
|
||||
if (m->interpol < 0)
|
||||
m->interpol = 0;
|
||||
if (m->interpol > 1)
|
||||
|
|
|
@ -977,7 +977,12 @@ int32_t FX_PlayLoopedAuto(char *ptr, uint32_t length, int32_t loopstart, int32_t
|
|||
uint32_t callbackval)
|
||||
{
|
||||
int32_t handle = -1;
|
||||
printf("FX_PlayLoopedAuto %X\n",*(int32_t *)ptr);
|
||||
{
|
||||
int32_t fmtstr[2];
|
||||
fmtstr[0] = *(int32_t *)ptr;
|
||||
((char *)fmtstr)[4] = 0;
|
||||
printf("FX_PlayLoopedAuto %s\n",(char *)fmtstr);
|
||||
}
|
||||
switch (*(int32_t *)ptr)
|
||||
{
|
||||
case LITTLE32('C'+('r'<<8)+('e'<<16)+('a'<<24)):
|
||||
|
|
|
@ -446,8 +446,8 @@ void MV_ServiceVoc(void)
|
|||
if (iter > MV_MaxVoices && MV_Printf)
|
||||
MV_Printf("more iterations than voices! iter: %d\n",iter);
|
||||
|
||||
if (voice->Paused)
|
||||
continue;
|
||||
if (voice->Paused)
|
||||
continue;
|
||||
|
||||
MV_BufferEmpty[ MV_MixPage ] = FALSE;
|
||||
|
||||
|
|
Loading…
Reference in a new issue