OSDN Git Service

[Add] cheat_sightに座標表示 / Coordinate display on cheat_sight.
authorDeskull <61610939+sikabane-works@users.noreply.github.com>
Fri, 16 Apr 2021 10:04:17 +0000 (19:04 +0900)
committerDeskull <61610939+sikabane-works@users.noreply.github.com>
Fri, 16 Apr 2021 11:12:55 +0000 (20:12 +0900)
src/target/target-setter.cpp

index c0289af..aacb7b5 100644 (file)
@@ -171,7 +171,7 @@ static void describe_projectablity(player_type *creature_ptr, ts_type *ts_ptr)
         return;
 
     char cheatinfo[30];
-    sprintf(cheatinfo, " LOS:%d, PROJECTABLE:%d", los(creature_ptr, creature_ptr->y, creature_ptr->x, ts_ptr->y, ts_ptr->x),
+    sprintf(cheatinfo, " X:%d Y:%d LOS:%d LOP:%d", ts_ptr->x, ts_ptr->y, los(creature_ptr, creature_ptr->y, creature_ptr->x, ts_ptr->y, ts_ptr->x),
         projectable(creature_ptr, creature_ptr->y, creature_ptr->x, ts_ptr->y, ts_ptr->x));
     strcat(ts_ptr->info, cheatinfo);
 }
@@ -390,7 +390,8 @@ static void describe_grid_wizard(player_type *creature_ptr, ts_type *ts_ptr)
         return;
 
     char cheatinfo[100];
-    sprintf(cheatinfo, " LOS:%d, PROJECTABLE:%d, SPECIAL:%d", los(creature_ptr, creature_ptr->y, creature_ptr->x, ts_ptr->y, ts_ptr->x),
+    sprintf(cheatinfo, " X:%d Y:%d LOS:%d LOP:%d SPECIAL:%d", ts_ptr->x, ts_ptr->y,
+        los(creature_ptr, creature_ptr->y, creature_ptr->x, ts_ptr->y, ts_ptr->x),
         projectable(creature_ptr, creature_ptr->y, creature_ptr->x, ts_ptr->y, ts_ptr->x), ts_ptr->g_ptr->special);
     strcat(ts_ptr->info, cheatinfo);
 }