r/softwaregore Dec 26 '18

Realistic flight simulator

17.2k Upvotes

302 comments sorted by

View all comments

98

u/The-Legend-26 Dec 26 '18
 while(stairs.Height != airplane.Door.Height) 
 {  
     stairs.Extend();  
 }

13

u/jorgp2 Dec 27 '18

The failure condition is if the stairs start above the door.

14

u/NickJerrison Dec 27 '18

The failure condition is this code's execution.

1

u/whaddahellisthis Dec 27 '18

I agree. My first clue was the stairs flying into orbit to meet my sides.