@@ -720,7 +720,7 @@ namespace RTE {
720
720
// / Returns force vector in newtons of the specified Force record.
721
721
// / @param n Force record index to get data from.
722
722
// / @return Force vector in newtons of the specified Force record.
723
- Vector GetForceVector (unsigned int n) {
723
+ Vector GetForceVector (size_t n) {
724
724
if (n > 0 && n < m_Forces.size ())
725
725
return m_Forces[n].first ;
726
726
else
@@ -734,7 +734,7 @@ namespace RTE {
734
734
// / Returns offset vector in METERS (not pixels) of the specified Force record.
735
735
// / @param n Force record index to get data from.
736
736
// / @return Offset vector in meters of the specified Force record.
737
- Vector GetForceOffset (unsigned int n) {
737
+ Vector GetForceOffset (size_t n) {
738
738
if (n > 0 && n < m_Forces.size ())
739
739
return m_Forces[n].second ;
740
740
else
@@ -743,14 +743,14 @@ namespace RTE {
743
743
744
744
// / Sets force vector in newtons of the specified Force record.
745
745
// / @param n Force record index to get data from. New Vector force value in newtons.
746
- void SetForceVector (unsigned int n, Vector v) {
746
+ void SetForceVector (size_t n, Vector v) {
747
747
if (n > 0 && n < m_Forces.size ())
748
748
m_Forces[n].first = v;
749
749
}
750
750
751
751
// / Sets offset vector in METERS (not pixels) of the specified Force record.
752
752
// / @param n Force record index to get data from. New Vector offset value in meters.
753
- void SetForceOffset (unsigned int n, Vector v) {
753
+ void SetForceOffset (size_t n, Vector v) {
754
754
if (n > 0 && n < m_Forces.size ())
755
755
m_Forces[n].second = v;
756
756
}
@@ -766,7 +766,7 @@ namespace RTE {
766
766
// / Returns Impulse vector in newtons of the specified Impulse record.
767
767
// / @param n Impulse record index to get data from.
768
768
// / @return Impulse vector in newtons of the specified Impulse record.
769
- Vector GetImpulseVector (unsigned int n) {
769
+ Vector GetImpulseVector (size_t n) {
770
770
if (n > 0 && n < m_ImpulseForces.size ())
771
771
return m_ImpulseForces[n].first ;
772
772
else
@@ -776,7 +776,7 @@ namespace RTE {
776
776
// / Returns offset vector in METERS (not pixels) of the specified Impulse record.
777
777
// / @param n Impulse record index to get data from.
778
778
// / @return Offset vector in meters of the specified Impulse record.
779
- Vector GetImpulseOffset (unsigned int n) {
779
+ Vector GetImpulseOffset (size_t n) {
780
780
if (n > 0 && n < m_ImpulseForces.size ())
781
781
return m_ImpulseForces[n].second ;
782
782
else
@@ -786,14 +786,14 @@ namespace RTE {
786
786
// / Returns offset vector in METERS (not pixels) of the specified Impulse record.
787
787
// / @param n Impulse record index to get data from.
788
788
// / @return Offset vector in meters of the specified Impulse record.
789
- void SetImpulseVector (unsigned int n, Vector v) {
789
+ void SetImpulseVector (size_t n, Vector v) {
790
790
if (n > 0 && n < m_ImpulseForces.size ())
791
791
m_ImpulseForces[n].first = v;
792
792
}
793
793
794
794
// / Sets offset vector in METERS (not pixels) of the specified Impulse record.
795
795
// / @param n Impulse record index to get data from. New Vector offset value in meters.
796
- void SetImpulseOffset (unsigned int n, Vector v) {
796
+ void SetImpulseOffset (size_t n, Vector v) {
797
797
if (n > 0 && n < m_ImpulseForces.size ())
798
798
m_ImpulseForces[n].second = v;
799
799
}
@@ -939,11 +939,11 @@ namespace RTE {
939
939
940
940
// / Returns the next unique id for MO's and increments unique ID counter
941
941
// / @return Returns the next unique id.
942
- static unsigned long int GetNextUniqueID () { return ++m_UniqueIDCounter; }
942
+ static long GetNextUniqueID () { return ++m_UniqueIDCounter; }
943
943
944
944
// / Returns this MO's unique persistent ID
945
945
// / @return Returns this MO's unique persistent ID
946
- unsigned long int const GetUniqueID () const { return m_UniqueID; }
946
+ long GetUniqueID () const { return m_UniqueID; }
947
947
948
948
// / Gets the preset name and unique ID of this MO, often useful for error messages.
949
949
// / @return A string containing the unique ID and preset name of this MO.
@@ -1098,7 +1098,7 @@ namespace RTE {
1098
1098
// Member variables
1099
1099
static Entity::ClassInfo m_sClass;
1100
1100
// Global counter with unique ID's
1101
- static std::atomic<unsigned long int > m_UniqueIDCounter;
1101
+ static std::atomic<long > m_UniqueIDCounter;
1102
1102
// The type of MO this is, either Actor, Item, or Particle
1103
1103
int m_MOType;
1104
1104
float m_Mass; // In metric kilograms (kg).
@@ -1229,7 +1229,7 @@ namespace RTE {
1229
1229
bool m_RandomizeEffectRotAngleEveryFrame;
1230
1230
1231
1231
// This object's unique persistent ID
1232
- long int m_UniqueID;
1232
+ long m_UniqueID;
1233
1233
// In which radis should we look to remove orphaned terrain on terrain penetration,
1234
1234
// must not be greater than SceneMan::ORPHANSIZE, or will be truncated
1235
1235
int m_RemoveOrphanTerrainRadius;
@@ -1254,7 +1254,7 @@ namespace RTE {
1254
1254
// Unique ID of particle hit this MO
1255
1255
long int m_ParticleUniqueIDHit;
1256
1256
// Number of sim update frame when last collision was detected
1257
- unsigned int m_LastCollisionSimFrameNumber;
1257
+ int m_LastCollisionSimFrameNumber;
1258
1258
int m_SimUpdatesBetweenScriptedUpdates; // !< The number of Sim updates between each scripted update for this MovableObject.
1259
1259
int m_SimUpdatesSinceLastScriptedUpdate; // !< The counter for the current number of Sim updates since this MovableObject last ran a scripted update.
1260
1260
0 commit comments