From f55032c567fba180b556d0d49c1fd48b6e850035 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 3 Mar 2024 17:14:54 +0100 Subject: [PATCH] add a clarifying comment to a hack --- src/kernel/building.c | 4 ++++ tests/data/test.dat | Bin 232 -> 0 bytes 2 files changed, 4 insertions(+) delete mode 100644 tests/data/test.dat diff --git a/src/kernel/building.c b/src/kernel/building.c index c75c6b193..5d460b664 100644 --- a/src/kernel/building.c +++ b/src/kernel/building.c @@ -482,6 +482,10 @@ static int build_failure(unit *u, order *ord, const building_type *btype, int wa cmistake(u, ord, 4, MSG_PRODUCE); break; case ENOMATERIALS: + /* this is incorrect, but we do not have any buildings that + * require different types or amounds of inputs at later stages. + * Especially because the only staged building are castles. + */ ADDMSG(&u->faction->msgs, msg_materials_required(u, ord, &btype->a_stages[0].construction, want)); break; diff --git a/tests/data/test.dat b/tests/data/test.dat deleted file mode 100644 index f06761f12f7bb3bb91d98eac2e5c806aa664d607..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 232 zcmb753J5cFibFU+BU|r2nX1HEkdv4RRKXRJnUt85k(gXs46?ukq?jqgppk#R zK+|^y_RPHG)V$(UMwa5toNNZ>{LCCy*4)aXq6}8ntkm*UAg{O}GdY!s1!zbvBS