@@ -96,7 +96,7 @@ DockUpdate::DockUpdate( Thing *thing, const ModuleData* moduleData ) : UpdateMod
96
96
m_approachPositionReached.resize(DEFAULT_APPROACH_VECTOR_SIZE);
97
97
}
98
98
99
- for ( Int vectorIndex = 0 ; vectorIndex < m_approachPositions.size (); ++vectorIndex )
99
+ for( size_t vectorIndex = 0; vectorIndex < m_approachPositions.size(); ++vectorIndex )
100
100
{
101
101
// Whatever size we are, init everything.
102
102
m_approachPositions[vectorIndex].zero();
@@ -118,7 +118,7 @@ Bool DockUpdate::isClearToApproach( Object const* docker ) const
118
118
119
119
ObjectID dockerID = docker->getID();
120
120
121
- for ( Int positionIndex = 0 ; positionIndex < m_approachPositionOwners.size (); ++positionIndex )
121
+ for( size_t positionIndex = 0; positionIndex < m_approachPositionOwners.size(); ++positionIndex )
122
122
{
123
123
if( m_approachPositionOwners[positionIndex] == INVALID_ID )
124
124
{
@@ -315,7 +315,7 @@ void DockUpdate::getExitPosition( Object* docker, Coord3D *position )
315
315
void DockUpdate::onApproachReached( Object* docker )
316
316
{
317
317
ObjectID dockerID = docker->getID();
318
- for ( Int positionIndex = 0 ; positionIndex < m_approachPositionOwners.size (); ++positionIndex )
318
+ for( size_t positionIndex = 0; positionIndex < m_approachPositionOwners.size(); ++positionIndex )
319
319
{
320
320
if( m_approachPositionOwners[positionIndex] == dockerID )
321
321
{
@@ -335,7 +335,7 @@ void DockUpdate::onEnterReached( Object* docker )
335
335
m_dockerInside = TRUE;
336
336
337
337
ObjectID dockerID = docker->getID();
338
- for ( Int positionIndex = 0 ; positionIndex < m_approachPositionOwners.size (); ++positionIndex )
338
+ for( size_t positionIndex = 0; positionIndex < m_approachPositionOwners.size(); ++positionIndex )
339
339
{
340
340
if( m_approachPositionOwners[positionIndex] == dockerID )
341
341
{
@@ -381,7 +381,7 @@ void DockUpdate::onExitReached( Object* docker )
381
381
void DockUpdate::cancelDock( Object* docker )
382
382
{
383
383
ObjectID dockerID = docker->getID();
384
- for ( Int positionIndex = 0 ; positionIndex < m_approachPositionOwners.size (); ++positionIndex )
384
+ for( size_t positionIndex = 0; positionIndex < m_approachPositionOwners.size(); ++positionIndex )
385
385
{
386
386
if( m_approachPositionOwners[positionIndex] == dockerID )
387
387
{
@@ -418,7 +418,7 @@ UpdateSleepTime DockUpdate::update()
418
418
if( m_activeDocker == INVALID_ID && !m_dockCrippled )
419
419
{
420
420
// if setDockCrippled has been called, I will never give enterance permission.
421
- for ( Int positionIndex = 0 ; positionIndex < m_approachPositionReached.size (); ++positionIndex )
421
+ for( size_t positionIndex = 0; positionIndex < m_approachPositionReached.size(); ++positionIndex )
422
422
{
423
423
if( m_approachPositionReached[positionIndex] )
424
424
{
0 commit comments