From 53d0edc83893304420637e72854ba5b4b911757f Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Tue, 15 Jan 2013 19:19:56 +0100 Subject: [PATCH] edit: Show edited planes and land units just like ships Signed-off-by: Markus Armbruster --- src/lib/commands/edit.c | 2 ++ tests/actofgod/journal.log | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/lib/commands/edit.c b/src/lib/commands/edit.c index 6a8eeb373..183979d38 100644 --- a/src/lib/commands/edit.c +++ b/src/lib/commands/edit.c @@ -313,6 +313,7 @@ print_nat(struct natstr *np) static void print_plane(struct plnstr *plane) { + pr("%s %s\n", prnatid(plane->pln_own), prplane(plane)); pr("UID : %d\t\t", plane->pln_uid); pr("Owner : %d\t\t", plane->pln_own); pr("Location : %s\n", @@ -330,6 +331,7 @@ print_plane(struct plnstr *plane) static void print_land(struct lndstr *land) { + pr("%s %s\n", prnatid(land->lnd_own), prland(land)); pr("UID : %d\n", land->lnd_uid); pr("Owner : %d\n", land->lnd_own); pr("Location : %s\n", xyas(land->lnd_x, land->lnd_y, player->cnum)); diff --git a/tests/actofgod/journal.log b/tests/actofgod/journal.log index 3d679b9ec..a925013fe 100644 --- a/tests/actofgod/journal.log +++ b/tests/actofgod/journal.log @@ -1165,6 +1165,7 @@ Play#0 output Play#0 6 0 640 Play#0 input edit p 0 Play#0 command edit + Play#0 output Play#0 1 POGO (#0) f1 Sopwith Camel #0 Play#0 output Play#0 1 UID : 0 Owner : 0 Location : 1,-1 Play#0 output Play#0 1 Efficiency : 0 Mobility : 0 Play#0 output Play#0 1 Tech : 100 Wing : @@ -1176,6 +1177,7 @@ Play#0 input y -1 Play#0 output Play#0 4 %c xxxxx -- thing value : Play#0 input + Play#0 output Play#0 1 POGO (#0) f1 Sopwith Camel #0 Play#0 output Play#0 1 UID : 0 Owner : 0 Location : 1,-1 Play#0 output Play#0 1 Efficiency : 0 Mobility : 2 Play#0 output Play#0 1 Tech : 100 Wing : @@ -1184,6 +1186,7 @@ Play#0 output Play#0 6 0 640 Play#0 input edit u 0 Play#0 command edit + Play#0 output Play#0 1 POGO (#0) sup supply #0 Play#0 output Play#0 1 UID : 0 Play#0 output Play#0 1 Owner : 0 Play#0 output Play#0 1 Location : 1,-1 @@ -1201,6 +1204,7 @@ Play#0 input Y -1 Play#0 output Play#0 4 %c xxxxx -- thing value : Play#0 input + Play#0 output Play#0 1 POGO (#0) sup supply #0 Play#0 output Play#0 1 UID : 0 Play#0 output Play#0 1 Owner : 0 Play#0 output Play#0 1 Location : 1,-1 -- 2.43.0