Skip to content

Commit

Permalink
Fix the ugly "Bug! (e)" message for script added production. Makes wa…
Browse files Browse the repository at this point in the history
…tching autogames really annoying.
  • Loading branch information
perim committed Oct 17, 2010
1 parent 1ef4fe7 commit 6f25802
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/intdisplay.c
Expand Up @@ -336,9 +336,9 @@ void intUpdateQuantity(WIDGET *psWidget, W_CONTEXT *psContext)
Quantity = getProductionQuantity(Structure, psTemplate);
Built = getProductionBuilt(Structure, psTemplate);
snprintf(Label->aText, sizeof(Label->aText), "%02d", Quantity - Built);
if (Quantity - Built <= 0)
if (Quantity - Built <= 0) // zero is always the case for script added production
{
snprintf(Label->aText, sizeof(Label->aText), "BUG! (e) %d-%d", Quantity, Built);
sstrcpy(Label->aText, "01");
}
Label->style &= ~WIDG_HIDDEN;
}
Expand Down

0 comments on commit 6f25802

Please sign in to comment.