equal
deleted
inserted
replaced
1027 for(;;) { |
1027 for(;;) { |
1028 // only build/remove signals with the specified density |
1028 // only build/remove signals with the specified density |
1029 if ((signal_ctr % signal_density) == 0 ) { |
1029 if ((signal_ctr % signal_density) == 0 ) { |
1030 ret = DoCommand(x, y, (railbit & 7) | semaphores, signals, flags, (mode == 1) ? CMD_REMOVE_SIGNALS : CMD_BUILD_SIGNALS); |
1030 ret = DoCommand(x, y, (railbit & 7) | semaphores, signals, flags, (mode == 1) ? CMD_REMOVE_SIGNALS : CMD_BUILD_SIGNALS); |
1031 |
1031 |
1032 /* Abort placement for any other error then NOT_SUITEABLE_TRACK |
1032 /* Abort placement for any other error than NOT_SUITABLE_TRACK |
1033 * This includes vehicles on track, competitor's tracks, etc. */ |
1033 * This includes vehicles on track, competitor's tracks, etc. */ |
1034 if (ret == CMD_ERROR) { |
1034 if (ret == CMD_ERROR) { |
1035 if (_error_message != STR_1005_NO_SUITABLE_RAILROAD_TRACK && mode != 1) { |
1035 if (_error_message != STR_1005_NO_SUITABLE_RAILROAD_TRACK && mode != 1) { |
1036 return CMD_ERROR; |
1036 return CMD_ERROR; |
1037 } |
1037 } |