Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GetDistanceX() {
- global X
- global destination
- if (X >= 0) {
- if (destination >= 0) {
- if (destination > X) {
- distance:=destination-X
- }
- if (destination < X) {
- distance:=X-destination
- }
- }
- if (destination < 0) {
- distance:=destination-X
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement