mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
nuke all the #if 0's
scripted commit:
find . -not -path '*/.*' -and -not -path '*/ext*' -type d -exec coan source -R -E {} ';'
https://coan2.sourceforge.net/coan_man_1.html
This commit is contained in:
committed by
Asdow
parent
6afe785f4b
commit
8b1c4effa0
@@ -631,40 +631,6 @@ UINT32 CalculateSoundEffectsVolume( UINT32 uiVolume )
|
||||
}
|
||||
|
||||
|
||||
#if 0
|
||||
int x,dif,absDif;
|
||||
|
||||
// This function calculates the general LEFT / RIGHT direction of a gridno
|
||||
// based on the middle of your screen.
|
||||
|
||||
x = Gridx(gridno);
|
||||
|
||||
dif = ScreenMiddleX - x;
|
||||
|
||||
if ( (absDif=abs(dif)) > 32)
|
||||
{
|
||||
// OK, NOT the middle.
|
||||
|
||||
// Is it outside the screen?
|
||||
if (absDif > HalfWindowWidth)
|
||||
{
|
||||
// yes, outside...
|
||||
if (dif > 0)
|
||||
return(25);
|
||||
else
|
||||
return(102);
|
||||
}
|
||||
else // inside screen
|
||||
if (dif > 0)
|
||||
return(LEFTSIDE);
|
||||
else
|
||||
return(RIGHTSIDE);
|
||||
}
|
||||
else // hardly any difference, so sound should be played from middle
|
||||
return(MIDDLE);
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
// == Lesh slightly changed this function ============
|
||||
INT32 SoundDir( INT32 sGridNo )
|
||||
|
||||
Reference in New Issue
Block a user