projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e75926c
)
quantized positions
author
hgn
<hgodden00@gmail.com>
Wed, 4 Oct 2023 06:03:36 +0000
(07:03 +0100)
committer
hgn
<hgodden00@gmail.com>
Wed, 4 Oct 2023 06:03:36 +0000
(07:03 +0100)
player_skate.c
patch
|
blob
|
history
player_walk.c
patch
|
blob
|
history
diff --git
a/player_skate.c
b/player_skate.c
index 6ddb4ae836141b30fb5eb825023e42ab7cacc9f6..4bad1deb30cbda0b2db1d8577a744d468467afc4 100644
(file)
--- a/
player_skate.c
+++ b/
player_skate.c
@@
-3190,7
+3190,7
@@
static void player__skate_reset( ent_spawn *rp ){
static void player__skate_animator_exchange( bitpack_ctx *ctx, void *data ){
struct player_skate_animator *animator = data;
static void player__skate_animator_exchange( bitpack_ctx *ctx, void *data ){
struct player_skate_animator *animator = data;
- bitpack_
bytes( ctx, sizeof(animator->root_co)
, animator->root_co );
+ bitpack_
qv3f( ctx, 16, -1024.0f, 1024.0f
, animator->root_co );
bitpack_qquat( ctx, animator->root_q );
bitpack_qv3f( ctx, 8, -1.0f, 1.0f, animator->offset );
bitpack_qquat( ctx, animator->root_q );
bitpack_qv3f( ctx, 8, -1.0f, 1.0f, animator->offset );
diff --git
a/player_walk.c
b/player_walk.c
index 6400d304c51debcdc964a605c784164544e383de..4619c2e995f2b6334ece0fb97e411a5bf955ce9c 100644
(file)
--- a/
player_walk.c
+++ b/
player_walk.c
@@
-964,8
+964,8
@@
static void player__walk_reset( ent_spawn *rp ){
static void player__walk_animator_exchange( bitpack_ctx *ctx, void *data ){
struct player_walk_animator *animator = data;
static void player__walk_animator_exchange( bitpack_ctx *ctx, void *data ){
struct player_walk_animator *animator = data;
- //bitpack_bytes( ctx, sizeof(*animator), animator );
- bitpack_
bytes( ctx, sizeof(animator->root_co)
, animator->root_co );
+
+ bitpack_
qv3f( ctx, 16, -1024.0f, 1024.0f
, animator->root_co );
bitpack_qquat( ctx, animator->root_q );
bitpack_qf32( ctx, 8, 0.0f, 1.0f, &animator->fly );
bitpack_qf32( ctx, 8, 0.0f, 1.0f, &animator->run );
bitpack_qquat( ctx, animator->root_q );
bitpack_qf32( ctx, 8, 0.0f, 1.0f, &animator->fly );
bitpack_qf32( ctx, 8, 0.0f, 1.0f, &animator->run );