mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-22 17:19:15 +01:00
Ped: WeaponInfo: little fixes and renamings
This commit is contained in:
parent
498d3a49ac
commit
dc96a49dfd
@ -299,7 +299,7 @@ CPlayerPed::SetRealMoveAnim(void)
|
||||
|
||||
RestoreHeadingRate();
|
||||
if (!curIdleAssoc) {
|
||||
if (m_fCurrentStamina < 0.0f && !CWorld::TestSphereAgainstWorld(GetPosition(), 0.0f,
|
||||
if (m_fCurrentStamina < 0.0f && !CWorld::TestSphereAgainstWorld(GetPosition(), 0.5f,
|
||||
nil, true, false, false, false, false, false)) {
|
||||
curIdleAssoc = CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_IDLE_TIRED, 8.0f);
|
||||
|
||||
@ -313,7 +313,7 @@ CPlayerPed::SetRealMoveAnim(void)
|
||||
|
||||
} else if (m_fMoveSpeed == 0.0f && !curSprintAssoc) {
|
||||
if (!curIdleAssoc) {
|
||||
if (m_fCurrentStamina < 0.0f && !CWorld::TestSphereAgainstWorld(GetPosition(), 0.0f,
|
||||
if (m_fCurrentStamina < 0.0f && !CWorld::TestSphereAgainstWorld(GetPosition(), 0.5f,
|
||||
nil, true, false, false, false, false, false)) {
|
||||
curIdleAssoc = CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_IDLE_TIRED, 4.0f);
|
||||
|
||||
@ -329,7 +329,7 @@ CPlayerPed::SetRealMoveAnim(void)
|
||||
|
||||
} else if (m_nPedState != PED_FIGHT) {
|
||||
if (m_fCurrentStamina < 0.0f && curIdleAssoc->animId != ANIM_IDLE_TIRED
|
||||
&& !CWorld::TestSphereAgainstWorld(GetPosition(), 0.0f, nil, true, false, false, false, false, false)) {
|
||||
&& !CWorld::TestSphereAgainstWorld(GetPosition(), 0.5f, nil, true, false, false, false, false, false)) {
|
||||
CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_IDLE_TIRED, 4.0f);
|
||||
|
||||
} else if (curIdleAssoc->animId != ANIM_IDLE_STANCE) {
|
||||
|
@ -76,10 +76,9 @@ CWeaponInfo::LoadWeaponData(void)
|
||||
line[linelen] = '\0';
|
||||
|
||||
// skip white space
|
||||
for (lp = 0; line[lp] <= ' '; lp++);
|
||||
for (lp = 0; line[lp] <= ' ' && line[lp] != '\0'; lp++);
|
||||
|
||||
if (lp >= linelen || // FIX: game uses == here, but this is safer if we have empty lines
|
||||
line[lp] == '#')
|
||||
if (line[lp] == '\0' || line[lp] == '#')
|
||||
continue;
|
||||
|
||||
spread = 0.0f;
|
||||
|
Loading…
Reference in New Issue
Block a user