File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Generals/Code/GameEngine/Source/GameLogic/Object/Update
GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -942,8 +942,10 @@ void PhysicsBehavior::addOverlap(Object *obj)
942
942
void PhysicsBehavior::transferVelocityTo (PhysicsBehavior* that) const
943
943
{
944
944
if (that != NULL )
945
+ {
945
946
that->m_vel .add (&m_vel);
946
- that->m_velMag = INVALID_VEL_MAG;
947
+ that->m_velMag = INVALID_VEL_MAG;
948
+ }
947
949
}
948
950
949
951
// -------------------------------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -1067,8 +1067,10 @@ void PhysicsBehavior::addOverlap(Object *obj)
1067
1067
void PhysicsBehavior::transferVelocityTo (PhysicsBehavior* that) const
1068
1068
{
1069
1069
if (that != NULL )
1070
+ {
1070
1071
that->m_vel .add (&m_vel);
1071
- that->m_velMag = INVALID_VEL_MAG;
1072
+ that->m_velMag = INVALID_VEL_MAG;
1073
+ }
1072
1074
}
1073
1075
1074
1076
// -------------------------------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments