mirror of
https://github.com/DrBeef/Raze.git
synced 2025-02-20 18:52:43 +00:00
- Blood: Replace remaining uses of costable[]
with Sin()
inlines.
This commit is contained in:
parent
ad183b5a3e
commit
5a57beb343
1 changed files with 4 additions and 4 deletions
|
@ -333,12 +333,12 @@ void viewUpdateDelirium(void)
|
|||
tilt2 = MulScale(tilt2, powerScale, 16);
|
||||
pitch = MulScale(pitch, powerScale, 16);
|
||||
}
|
||||
int sin2 = costable[(2*timer-512)&2047] / 2;
|
||||
int sin3 = costable[(3*timer-512)&2047] / 2;
|
||||
int sin2 = Sin(2*timer) >> 1;
|
||||
int sin3 = Sin(3*timer) >> 1;
|
||||
gScreenTilt = MulScale(sin2+sin3,tilt1, 30);
|
||||
int sin4 = costable[(4*timer-512)&2047] / 2;
|
||||
int sin4 = Sin(4*timer) >> 1;
|
||||
deliriumTurn = MulScale(sin3+sin4,tilt2, 30);
|
||||
int sin5 = costable[(5*timer-512)&2047] / 2;
|
||||
int sin5 = Sin(5*timer) >> 1;
|
||||
deliriumPitch = MulScale(sin4+sin5,pitch, 30);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue