projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
maths api changes
[carveJwlIkooP6JGAAIwe30JlM.git]
/
world.h
diff --git
a/world.h
b/world.h
index 962b96405c87ccb076122ee2eb89d6a82bfbc90a..420523bc2a28cbcf08fccd609ada40cfc8baf87c 100644
(file)
--- a/
world.h
+++ b/
world.h
@@
-421,9
+421,9
@@
VG_STATIC void ent_volume_call( world_instance *world, ent_call *call )
if( volume->type == k_volume_subtype_particle ){
float *co = alloca( sizeof(float)*3 );
if( volume->type == k_volume_subtype_particle ){
float *co = alloca( sizeof(float)*3 );
- co[0] = vg_randf()*2.0f-1.0f;
- co[1] = vg_randf()*2.0f-1.0f;
- co[2] = vg_randf()*2.0f-1.0f;
+ co[0] = vg_randf
64
()*2.0f-1.0f;
+ co[1] = vg_randf
64
()*2.0f-1.0f;
+ co[2] = vg_randf
64
()*2.0f-1.0f;
m4x3_mulv( volume->to_world, co, co );
call->function = k_ent_function_particle_spawn;
m4x3_mulv( volume->to_world, co, co );
call->function = k_ent_function_particle_spawn;
@@
-452,7
+452,7
@@
VG_STATIC void ent_audio_call( world_instance *world, ent_call *call )
else
vg_fatal_error( "ent_audio_call (invalid function id)" );
else
vg_fatal_error( "ent_audio_call (invalid function id)" );
- float chance = vg_randf()*100.0f,
+ float chance = vg_randf
64
()*100.0f,
bar = 0.0f;
for( u32 i=0; i<audio->clip_count; i++ ){
bar = 0.0f;
for( u32 i=0; i<audio->clip_count; i++ ){
@@
-838,7
+838,7
@@
VG_STATIC struct world_surface *ray_hit_surface( world_instance *world,
*/
VG_STATIC
*/
VG_STATIC
-enum audio_sprite_type world_audio_sample_sprite_
r
andom(v3f origin, v3f output);
+enum audio_sprite_type world_audio_sample_sprite_
k
andom(v3f origin, v3f output);
VG_STATIC void world_audio_sample_distances( v3f co, int *index, float *value );
#include "audio.h"
VG_STATIC void world_audio_sample_distances( v3f co, int *index, float *value );
#include "audio.h"
@@
-849,9
+849,9
@@
VG_STATIC void world_audio_sample_distances( v3f co, int *index, float *value );
VG_STATIC
enum audio_sprite_type world_audio_sample_sprite_random(v3f origin, v3f output)
{
VG_STATIC
enum audio_sprite_type world_audio_sample_sprite_random(v3f origin, v3f output)
{
- v3f chance = { (vg_randf()-0.5f) * 30.0f,
+ v3f chance = { (vg_randf
64
()-0.5f) * 30.0f,
8.0f,
8.0f,
- (vg_randf()-0.5f) * 30.0f };
+ (vg_randf
64
()-0.5f) * 30.0f };
v3f pos;
v3_add( chance, origin, pos );
v3f pos;
v3_add( chance, origin, pos );