diff options
author | skidd13 <skidd13@openttd.org> | 2007-11-19 18:58:04 +0000 |
---|---|---|
committer | skidd13 <skidd13@openttd.org> | 2007-11-19 18:58:04 +0000 |
commit | f4a5c80d7193821bdfe9b3669e245b43c6feee3d (patch) | |
tree | 18ac24e0b26fa3cf7cb17962dde493f142f39a03 /src/train_cmd.cpp | |
parent | 98f66552beadfa14cf28cd126fc462a5abe3087b (diff) | |
download | openttd-f4a5c80d7193821bdfe9b3669e245b43c6feee3d.tar.xz |
(svn r11476) -Codechange: rename the function myabs to abs to get rid of an unneeded define
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r-- | src/train_cmd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index 0e6400c7a..4489a0bea 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -2726,9 +2726,9 @@ static void *FindTrainCollideEnum(Vehicle *v, void *data) v != tcc->v_skip && v->type == VEH_TRAIN && v->u.rail.track != TRACK_BIT_DEPOT && - myabs(v->z_pos - tcc->v->z_pos) < 6 && - myabs(v->x_pos - tcc->v->x_pos) < 6 && - myabs(v->y_pos - tcc->v->y_pos) < 6 ) { + abs(v->z_pos - tcc->v->z_pos) < 6 && + abs(v->x_pos - tcc->v->x_pos) < 6 && + abs(v->y_pos - tcc->v->y_pos) < 6 ) { Vehicle *coll = v->First(); |