diff options
-rw-r--r-- | ai/trolly/build.c | 6 | ||||
-rw-r--r-- | ai/trolly/trolly.c | 4 | ||||
-rw-r--r-- | openttd.c | 2 | ||||
-rw-r--r-- | rail_cmd.c | 2 | ||||
-rw-r--r-- | saveload.c | 2 | ||||
-rw-r--r-- | video/sdl_v.c | 4 | ||||
-rw-r--r-- | yapf/yapf_costcache.hpp | 2 |
7 files changed, 11 insertions, 11 deletions
diff --git a/ai/trolly/build.c b/ai/trolly/build.c index f90336f20..ff2158395 100644 --- a/ai/trolly/build.c +++ b/ai/trolly/build.c @@ -166,7 +166,7 @@ int AiNew_Build_RoutePart(Player *p, Ai_PathFinderInfo *PathFinderInfo, byte fla PathFinderInfo->position++; // TODO: problems! if (CmdFailed(cost)) { - DEBUG(ai,0)("[AiNew - BuildPath] We have a serious problem: tunnel could not be build!"); + DEBUG(ai,0)("[AiNew - BuildPath] We have a serious problem: tunnel could not be built!"); return 0; } return cost; @@ -177,7 +177,7 @@ int AiNew_Build_RoutePart(Player *p, Ai_PathFinderInfo *PathFinderInfo, byte fla PathFinderInfo->position++; // TODO: problems! if (CmdFailed(cost)) { - DEBUG(ai,0)("[AiNew - BuildPath] We have a serious problem: bridge could not be build!"); + DEBUG(ai,0)("[AiNew - BuildPath] We have a serious problem: bridge could not be built!"); return 0; } return cost; @@ -201,7 +201,7 @@ int AiNew_Build_RoutePart(Player *p, Ai_PathFinderInfo *PathFinderInfo, byte fla // Currently, we ignore CMD_ERRORs! if (CmdFailed(res) && flag == DC_EXEC && !IsTileType(route[part], MP_STREET) && !EnsureNoVehicle(route[part])) { // Problem.. let's just abort it all! - DEBUG(ai,0)("Darn, the route could not be builded.. aborting!"); + DEBUG(ai,0)("Darn, the route could not be built.. aborting!"); p->ainew.state = AI_STATE_NOTHING; return 0; } diff --git a/ai/trolly/trolly.c b/ai/trolly/trolly.c index d952975b9..26a7172ff 100644 --- a/ai/trolly/trolly.c +++ b/ai/trolly/trolly.c @@ -993,7 +993,7 @@ static void AiNew_State_BuildStation(Player *p) p->ainew.state = AI_STATE_BUILD_PATH; } if (CmdFailed(res)) { - DEBUG(ai,0)("[AiNew - BuildStation] Strange but true... station can not be build!"); + DEBUG(ai,0)("[AiNew - BuildStation] Strange but true... station can not be built!"); p->ainew.state = AI_STATE_NOTHING; // If the first station _was_ build, destroy it if (p->ainew.temp != 0) @@ -1122,7 +1122,7 @@ static void AiNew_State_BuildDepot(Player *p) res = AiNew_Build_Depot(p, p->ainew.depot_tile, p->ainew.depot_direction, DC_EXEC); if (CmdFailed(res)) { - DEBUG(ai,0)("[AiNew - BuildDepot] Strange but true... depot can not be build!"); + DEBUG(ai,0)("[AiNew - BuildDepot] Strange but true... depot can not be built!"); p->ainew.state = AI_STATE_NOTHING; return; } @@ -641,7 +641,7 @@ static void StartScenario(void) // invalid type if (_file_to_saveload.mode == SL_INVALID) { - printf("Savegame is obsolete or invalid format: %s\n", _file_to_saveload.name); + DEBUG(misc, 0) ("[Sl] Savegame is obsolete or invalid format: %s", _file_to_saveload.name); ShowErrorMessage(INVALID_STRING_ID, STR_4009_GAME_LOAD_FAILED, 0, 0); _game_mode = GM_MENU; return; diff --git a/rail_cmd.c b/rail_cmd.c index f605eb8bf..24b1cf77c 100644 --- a/rail_cmd.c +++ b/rail_cmd.c @@ -1655,7 +1655,7 @@ make_red: ssd->next_dir[ssd->cur_stack] = _dir_from_track[ssd->bit[i]]; ssd->cur_stack++; } else { - printf("NUM_SSD_STACK too small\n"); /// @todo WTF is this??? + DEBUG(misc, 0) ("NUM_SSD_STACK too small"); /// @todo WTF is this??? } } diff --git a/saveload.c b/saveload.c index a1d14e729..92a9112ff 100644 --- a/saveload.c +++ b/saveload.c @@ -1629,7 +1629,7 @@ int GetSavegameType(char *file) f = fopen(file, "rb"); if (fread(&hdr, sizeof(hdr), 1, f) != 1) { - printf("Savegame is obsolete or invalid format.\n"); + DEBUG(misc, 0) ("[Sl] Savegame is obsolete or invalid format"); mode = SL_LOAD; // don't try to get filename, just show name as it is written } else { // see if we have any loader for this type. diff --git a/video/sdl_v.c b/video/sdl_v.c index 5ffd33dbf..d9ddc6219 100644 --- a/video/sdl_v.c +++ b/video/sdl_v.c @@ -296,8 +296,8 @@ static uint32 ConvertSdlKeyIntoMy(SDL_keysym *sym) if (sym->mod & KMOD_ALT) key |= WKC_ALT; // these two lines really help porting hotkey combos. Uncomment to use -- Bjarni #if 0 - printf("scancode character pressed %d\n", sym->scancode); - printf("unicode character pressed %d\n", sym->unicode); + DEBUG(driver, 0) ("scancode character pressed %d", sym->scancode); + DEBUG(driver, 0) ("unicode character pressed %d", sym->unicode); #endif return (key << 16) + sym->unicode; } diff --git a/yapf/yapf_costcache.hpp b/yapf/yapf_costcache.hpp index e1f635e68..b7ee392d5 100644 --- a/yapf/yapf_costcache.hpp +++ b/yapf/yapf_costcache.hpp @@ -153,7 +153,7 @@ protected: // some statistics if (last_date != _date) { last_date = _date; - DEBUG(yapf, 1)("pf time today:%5d ms\n", _total_pf_time_us / 1000); + DEBUG(yapf, 1) ("pf time today:%5d ms", _total_pf_time_us / 1000); _total_pf_time_us = 0; } |