projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cool font shader and entity bvh fix
[carveJwlIkooP6JGAAIwe30JlM.git]
/
skaterift.c
diff --git
a/skaterift.c
b/skaterift.c
index 3188fd9adee822628b7291a4d84788a5db364f39..fac82810ed0b7e459ebd5129b33d6709e62ee4e6 100644
(file)
--- a/
skaterift.c
+++ b/
skaterift.c
@@
-13,7
+13,7
@@
#if 1
#if 1
-#define SR_NETWORKED
+
//
#define SR_NETWORKED
#ifndef VG_RELEASE
#define VG_DEVWINDOW
#ifndef VG_RELEASE
#define VG_DEVWINDOW
@@
-146,12
+146,14
@@
static void skaterift_restore_state(void){
world_static.active_instance = vg_msg_seekkvu32( &world, "index", 0 );
world_static.active_trigger_volume_count = 0;
localplayer.viewable_world = world_current_instance();
world_static.active_instance = vg_msg_seekkvu32( &world, "index", 0 );
world_static.active_trigger_volume_count = 0;
localplayer.viewable_world = world_current_instance();
+ }
+
+ vg_msg_cmd position = vg_msg_seekkv( &world, "position", 0 );
+ v3f pos;
+ vg_msg_convert_num( &position, k_vg_msg_float|k_vg_msg_32b, 3, pos );
- vg_msg_cmd position = vg_msg_seekkv( &world, "position", 0 );
- v3f pos;
- vg_msg_convert_num( &position, k_vg_msg_float|k_vg_msg_32b, 3, pos );
+ if( v3_length2(pos) > 1.0f )
player__setpos( &localplayer, pos );
player__setpos( &localplayer, pos );
- }
}
}
}
}