   Objective C: Comparison Operators?
  Just realised i posted this in game instead of general.... oops.Ok, i have the update of an entity as follows:-(void) doUpdate {if(m_bActive){if( m_direction == _South ){m_position.y++;if( m_position.y >= ( [VIZ m_iScreenHeight] + 32 ) ); // Change to image height{m_direction = _North;}}else{m_position.y--;if( m_position.y <= ( 0 - 32 ) ); // Change to image height{m_direction = _South;}}}}No matter what the value of m_position.y it executes the if statement. Is this simple test somehow different in Object C? Ive found tutorials showing the same usage.Im baffled. Any ideas?   
  Is m_position.y an instance variable or a property?   ;  Its an instance variable, a CGPoint in particular which contains two CGFloats which are just typedefs for floats. Ive debugged and by any logical sense this shouldNT be triggering.   ;  Ok, no more 16 hour coding spree's for me. Stupid little semi colons. See if you can spot them :(   ;Quote:Original post by Infinite_DaremoOk, no more 16 hour coding spree's for me. Stupid little semi colons. See if you can spot them :(Yep. Classic C (and all its hellion spawn [smile]) bug!   ;  Semicolon wins again   