mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-25 05:34:27 +00:00
Use common PI value instead
svn-id: r15435
This commit is contained in:
parent
d76a375889
commit
2ca4529bba
@ -864,13 +864,12 @@ void MidiDriver_YM2612::rate(uint16 r)
|
||||
_channel[i]->rate(r);
|
||||
}
|
||||
|
||||
#define M_PI 3.14159265358979323846
|
||||
void MidiDriver_YM2612::createLookupTables() {
|
||||
{
|
||||
int i;
|
||||
sintbl = new int [2048];
|
||||
for (i = 0; i < 2048; i++)
|
||||
sintbl[i] = (int)(0xffff * sin(i/2048.0*2.0*M_PI));
|
||||
sintbl[i] = (int)(0xffff * sin(i/2048.0*2.0*PI));
|
||||
}
|
||||
|
||||
{
|
||||
|
@ -1869,13 +1869,13 @@ void ScummEngine_v72he::o72_kernelGetFunctions() {
|
||||
break;
|
||||
case 1001:
|
||||
{
|
||||
double a = args[1] * M_PI / 180.;
|
||||
double a = args[1] * PI / 180.;
|
||||
push((int)(sin(a) * 100000));
|
||||
}
|
||||
break;
|
||||
case 1002:
|
||||
{
|
||||
double a = args[1] * M_PI / 180.;
|
||||
double a = args[1] * PI / 180.;
|
||||
push((int)(cos(a) * 100000));
|
||||
}
|
||||
break;
|
||||
|
@ -411,12 +411,12 @@ void ScummEngine_v90he::o90_getGT() {
|
||||
}
|
||||
|
||||
void ScummEngine_v90he::o90_sin() {
|
||||
double a = pop() * M_PI / 180.;
|
||||
double a = pop() * PI / 180.;
|
||||
push((int)(sin(a) * 100000));
|
||||
}
|
||||
|
||||
void ScummEngine_v90he::o90_cos() {
|
||||
double a = pop() * M_PI / 180.;
|
||||
double a = pop() * PI / 180.;
|
||||
push((int)(cos(a) * 100000));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user