mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-22 10:22:48 +01:00
- fix DealWithHorn
- disable ReadAVI verbosity
This commit is contained in:
parent
7aa67b0073
commit
481856c02a
@ -1989,13 +1989,13 @@ void ProcessCarPad(_CAR_DATA *cp, ulong pad, char PadSteer, char use_analogue)
|
||||
{
|
||||
if ((pad & 4) == 0)
|
||||
{
|
||||
int_steer *= ((int_steer * int_steer) / 80);
|
||||
analog_angle = ((long long)int_steer * 0x66666667) >> 32; // (int_steer * 0.6) = int_steer * 2457 + 2048 >> 12 (2457 is 4096 * 0.6)
|
||||
int_steer *= (int_steer * int_steer) / 80;
|
||||
analog_angle = ((long long)int_steer * 0x66666667) >> 32; // int_steer * 0.4
|
||||
}
|
||||
else
|
||||
{
|
||||
int_steer *= ((int_steer * int_steer) / 60);
|
||||
analog_angle = ((long long)int_steer * 0x88888889) >> 32; // (int_steer * 0.4) = int_steer * 1638 + 2048 >> 12 (1638 is 4096 * 0.4)
|
||||
int_steer *= (int_steer * int_steer) / 60;
|
||||
analog_angle = ((long long)int_steer * 0x88888889) >> 32; // int_steer * 0.6
|
||||
}
|
||||
|
||||
analog_angle = (analog_angle >> 5) - (int_steer >> 0x1f);
|
||||
|
@ -3350,7 +3350,8 @@ void DealWithHorn(char *hr, int i)
|
||||
SetChannelPosition3(channel, (VECTOR *)car->hd.where.t, car->st.n.linearVelocity, -2000, i * 8 + 0x1000, 0);
|
||||
}
|
||||
|
||||
*hr = (*hr+1) % 28; // [A]
|
||||
int horn = *hr + 1 & 0xff;
|
||||
*hr = (u_char)horn - (((u_char)((long long)horn * 0xaaaaaaab >> 0x20) & 0xfe) + (horn / 3));
|
||||
}
|
||||
|
||||
|
||||
@ -3408,6 +3409,8 @@ int Havana3DOcclusion(occlFunc func, int *param)
|
||||
return 1;
|
||||
}
|
||||
|
||||
draw = 0;
|
||||
|
||||
if (camera_position.vy < 0x1bf)
|
||||
{
|
||||
draw = 16;
|
||||
|
@ -45,7 +45,7 @@
|
||||
|
||||
using namespace std;
|
||||
|
||||
#define VERBOSE
|
||||
// #define VERBOSE
|
||||
#define DBG_LVL_DEF 0
|
||||
|
||||
#ifdef VERBOSE
|
||||
|
Loading…
Reference in New Issue
Block a user