projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
water splash
[carveJwlIkooP6JGAAIwe30JlM.git]
/
skeleton.h
diff --git
a/skeleton.h
b/skeleton.h
index dc50fe957dbee4620bca3d5204b9aa521cea840d..d74e6608d0129f796f0eaf0a5a23021046d9dc38 100644
(file)
--- a/
skeleton.h
+++ b/
skeleton.h
@@
-19,6
+19,8
@@
struct skeleton
mdl_keyframe kf;
mdl_keyframe kf;
+ u32 orig_node;
+
int collider;
boxf hitbox;
int collider;
boxf hitbox;
@@
-59,6
+61,7
@@
static u32 skeleton_bone_id( struct skeleton *skele, const char *name )
if( !strcmp( skele->bones[i].name, name ))
return i;
}
if( !strcmp( skele->bones[i].name, name ))
return i;
}
+
return 0;
}
return 0;
}
@@
-465,6
+468,7
@@
static int skeleton_setup( struct skeleton *skele, mdl_header *mdl )
}
sb->collider = bone_inf->collider;
}
sb->collider = bone_inf->collider;
+ sb->orig_node = i;
box_copy( bone_inf->hitbox, sb->hitbox );
if( bone_inf->collider )
box_copy( bone_inf->hitbox, sb->hitbox );
if( bone_inf->collider )