diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2012-12-27 21:23:46 -0800 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2013-01-07 15:31:38 -0800 |
commit | c080e504e4d74027b985b1ed675c172c083cea76 (patch) | |
tree | ac084d16d9d40c0a0c950b66eb62a0e16795d486 /src/map/path.cpp | |
parent | ae30173d71d3bfc8514dbe70b6c90c9a3324b8fc (diff) | |
download | tmwa-c080e504e4d74027b985b1ed675c172c083cea76.tar.gz tmwa-c080e504e4d74027b985b1ed675c172c083cea76.tar.bz2 tmwa-c080e504e4d74027b985b1ed675c172c083cea76.tar.xz tmwa-c080e504e4d74027b985b1ed675c172c083cea76.zip |
Use cxxstdio
Diffstat (limited to 'src/map/path.cpp')
-rw-r--r-- | src/map/path.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/path.cpp b/src/map/path.cpp index afdae03..596332c 100644 --- a/src/map/path.cpp +++ b/src/map/path.cpp @@ -28,7 +28,7 @@ void push_heap_path(int *heap, struct tmp_path *tp, int index) if (heap == NULL || tp == NULL) { - printf("push_heap_path nullpo\n"); + PRINTF("push_heap_path nullpo\n"); return; } @@ -58,7 +58,7 @@ void update_heap_path(int *heap, struct tmp_path *tp, int index) break; if (h == heap[0]) { - fprintf(stderr, "update_heap_path bug\n"); + FPRINTF(stderr, "update_heap_path bug\n"); exit(1); } for (i = (h - 1) / 2; @@ -232,13 +232,13 @@ int path_blownpos(int m, int x0, int y0, int dx, int dy, int count) if (count > 15) { // 最大10マスに制限 if (battle_config.error_log) - printf("path_blownpos: count too many %d !\n", count); + PRINTF("path_blownpos: count too many %d !\n", count); count = 15; } if (dx > 1 || dx < -1 || dy > 1 || dy < -1) { if (battle_config.error_log) - printf("path_blownpos: illeagal dx=%d or dy=%d !\n", dx, dy); + PRINTF("path_blownpos: illeagal dx=%d or dy=%d !\n", dx, dy); dx = (dx >= 0) ? 1 : ((dx < 0) ? -1 : 0); dy = (dy >= 0) ? 1 : ((dy < 0) ? -1 : 0); } |