Skip to content

Commit

Permalink
add a clarifying comment to a hack
Browse files Browse the repository at this point in the history
  • Loading branch information
ennorehling committed Mar 9, 2024
1 parent b24ee03 commit f231142
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/kernel/building.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Binary file removed tests/data/test.dat
Binary file not shown.

0 comments on commit f231142

Please sign in to comment.