mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-02-12 14:45:41 +00:00
Fix audio position updating in automap mode
git-svn-id: https://svn.eduke32.com/eduke32@7766 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
465403a199
commit
31f66f7de4
1 changed files with 13 additions and 3 deletions
|
@ -875,12 +875,22 @@ void S_Update(void)
|
||||||
int32_t ca,cs;
|
int32_t ca,cs;
|
||||||
|
|
||||||
if (ud.camerasprite == -1)
|
if (ud.camerasprite == -1)
|
||||||
|
{
|
||||||
|
if (ud.overhead_on != 2)
|
||||||
{
|
{
|
||||||
c = &CAMERA(pos);
|
c = &CAMERA(pos);
|
||||||
cs = CAMERA(sect);
|
cs = CAMERA(sect);
|
||||||
ca = fix16_to_int(CAMERA(q16ang));
|
ca = fix16_to_int(CAMERA(q16ang));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
auto pPlayer = g_player[screenpeek].ps;
|
||||||
|
c = &pPlayer->pos;
|
||||||
|
cs = pPlayer->cursectnum;
|
||||||
|
ca = fix16_to_int(pPlayer->q16ang);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
c = (vec3_t *)&sprite[ud.camerasprite];
|
c = (vec3_t *)&sprite[ud.camerasprite];
|
||||||
cs = sprite[ud.camerasprite].sectnum;
|
cs = sprite[ud.camerasprite].sectnum;
|
||||||
|
|
Loading…
Reference in a new issue