Fix indention

This commit is contained in:
Yamagi Burmeister 2014-08-24 10:26:50 +02:00
parent bffed68b2c
commit 7742cd4893
2 changed files with 39 additions and 39 deletions

View file

@ -356,7 +356,7 @@ CL_Disconnect(void)
cls.state = ca_disconnected;
snd_is_underwater = false;
snd_is_underwater = false;
}
void

View file

@ -1269,59 +1269,59 @@ PM_ClampAngles(void)
#if !defined(DEDICATED_ONLY)
void PM_CalculateViewHeightForDemo()
{
if (pm->s.pm_type == PM_GIB)
pm->viewheight = 8;
else {
if ((pm->s.pm_flags & PMF_DUCKED) != 0)
pm->viewheight = -2;
else
pm->viewheight = 22;
}
if (pm->s.pm_type == PM_GIB)
pm->viewheight = 8;
else {
if ((pm->s.pm_flags & PMF_DUCKED) != 0)
pm->viewheight = -2;
else
pm->viewheight = 22;
}
}
void PM_CalculateWaterLevelForDemo()
{
vec3_t point;
int cont;
vec3_t point;
int cont;
point[0] = pml.origin[0];
point[1] = pml.origin[1];
point[2] = pml.origin[2] + pm->viewheight;
point[0] = pml.origin[0];
point[1] = pml.origin[1];
point[2] = pml.origin[2] + pm->viewheight;
pm->waterlevel = 0;
pm->watertype = 0;
pm->waterlevel = 0;
pm->watertype = 0;
cont = pm->pointcontents(point);
cont = pm->pointcontents(point);
if ((cont & MASK_WATER) != 0) {
pm->waterlevel = 3;
pm->watertype = cont;
}
if ((cont & MASK_WATER) != 0) {
pm->waterlevel = 3;
pm->watertype = cont;
}
}
void PM_UpdateUnderwaterSfx()
{
static int underwater;
static int underwater;
if ((pm->waterlevel == 3) && !underwater) {
underwater = 1;
snd_is_underwater = 1;
if ((pm->waterlevel == 3) && !underwater) {
underwater = 1;
snd_is_underwater = 1;
#ifdef USE_OPENAL
if (snd_is_underwater_enabled)
AL_Underwater();
if (snd_is_underwater_enabled)
AL_Underwater();
#endif
}
}
if ((pm->waterlevel < 3) && underwater) {
underwater = 0;
snd_is_underwater = 0;
if ((pm->waterlevel < 3) && underwater) {
underwater = 0;
snd_is_underwater = 0;
#ifdef USE_OPENAL
if (snd_is_underwater_enabled)
AL_Overwater();
if (snd_is_underwater_enabled)
AL_Overwater();
#endif
}
}
}
#endif
@ -1377,11 +1377,11 @@ Pmove(pmove_t *pmove)
if (pm->s.pm_type == PM_FREEZE)
{
#if !defined(DEDICATED_ONLY)
if (cl.attractloop) {
PM_CalculateViewHeightForDemo();
PM_CalculateWaterLevelForDemo();
PM_UpdateUnderwaterSfx();
}
if (cl.attractloop) {
PM_CalculateViewHeightForDemo();
PM_CalculateWaterLevelForDemo();
PM_UpdateUnderwaterSfx();
}
#endif
return; /* no movement at all */