projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
achievements and stuff
[carveJwlIkooP6JGAAIwe30JlM.git]
/
player_audio.h
diff --git
a/player_audio.h
b/player_audio.h
index f46d67084171c38961fb437aa4931aa257fa3018..757f495a1b761e3d94da2bafad365d5828cad33a 100644
(file)
--- a/
player_audio.h
+++ b/
player_audio.h
@@
-26,7
+26,7
@@
static void player_audio(void)
audio_lock();
audio_lock();
- double revert_delta = vg
_
time - last_revert;
+ double revert_delta = vg
.
time - last_revert;
if( phys->on_board && (!_air && l2) && (fabsf(phys->slip) > 0.5f) &&
(revert_delta > 0.7) )
{
if( phys->on_board && (!_air && l2) && (fabsf(phys->slip) > 0.5f) &&
(revert_delta > 0.7) )
{
@@
-35,11
+35,11
@@
static void player_audio(void)
audio_player_set_vol( &audio_player_extra, 2.0f );
audio_player_playclip( &audio_player_extra, &audio_lands[rand()%5] );
audio_player_set_vol( &audio_player_extra, 2.0f );
audio_player_playclip( &audio_player_extra, &audio_lands[rand()%5] );
- last_revert = vg
_
time;
+ last_revert = vg
.
time;
}
static float air = 0.0f;
}
static float air = 0.0f;
- air = vg_lerpf(air, phys->in_air? 1.0f: 0.0f, 5.0f*
ktimestep
);
+ air = vg_lerpf(air, phys->in_air? 1.0f: 0.0f, 5.0f*
VG_TIMESTEP_FIXED
);
/* Spacial info */
v3f ears = { 1.0f,0.0f,0.0f };
/* Spacial info */
v3f ears = { 1.0f,0.0f,0.0f };