mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-04-19 17:01:48 +00:00
Fix Joint errors in standalone games
using d3xp game code as base
This commit is contained in:
parent
9676a7bc14
commit
04f9481f4d
1 changed files with 3 additions and 3 deletions
|
@ -1645,19 +1645,19 @@ void idPlayer::Init( void ) {
|
|||
value = spawnArgs.GetString( "bone_hips", "" );
|
||||
hipJoint = animator.GetJointHandle( value );
|
||||
if ( hipJoint == INVALID_JOINT ) {
|
||||
gameLocal.Error( "Joint '%s' not found for 'bone_hips' on '%s'", value, name.c_str() );
|
||||
gameLocal.Warning( "Joint '%s' not found for 'bone_hips' on '%s'", value, name.c_str() );
|
||||
}
|
||||
|
||||
value = spawnArgs.GetString( "bone_chest", "" );
|
||||
chestJoint = animator.GetJointHandle( value );
|
||||
if ( chestJoint == INVALID_JOINT ) {
|
||||
gameLocal.Error( "Joint '%s' not found for 'bone_chest' on '%s'", value, name.c_str() );
|
||||
gameLocal.Warning( "Joint '%s' not found for 'bone_chest' on '%s'", value, name.c_str() );
|
||||
}
|
||||
|
||||
value = spawnArgs.GetString( "bone_head", "" );
|
||||
headJoint = animator.GetJointHandle( value );
|
||||
if ( headJoint == INVALID_JOINT ) {
|
||||
gameLocal.Error( "Joint '%s' not found for 'bone_head' on '%s'", value, name.c_str() );
|
||||
gameLocal.Warning( "Joint '%s' not found for 'bone_head' on '%s'", value, name.c_str() );
|
||||
}
|
||||
|
||||
// initialize the script variables
|
||||
|
|
Loading…
Reference in a new issue