X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=src%2Fclient%2Fdraw_wins.c;h=9857af522565dee13086b9deeaa3250c7065a826;hb=ea9b56e85af64ae816c5faea045ffdd004d56472;hp=ec2917347903b5ae6b44f4907fe7b291127c26c3;hpb=eda9c448812827e36b71fa1c3eb76d0fb906b57d;p=plomrogue
diff --git a/src/client/draw_wins.c b/src/client/draw_wins.c
index ec29173..9857af5 100644
--- a/src/client/draw_wins.c
+++ b/src/client/draw_wins.c
@@ -426,10 +426,13 @@ extern void draw_win_info(struct Win * win)
{
char * dsc_turn = "Turn: ";
char * dsc_hitpoints = "\nHitpoints: ";
- uint16_t maxl = strlen(dsc_turn) + 5 + strlen(dsc_hitpoints) + 3;
+ char * dsc_satiation = "\nSatiation: ";
+ uint16_t maxl = strlen(dsc_turn) + 5 + strlen(dsc_hitpoints)
+ + strlen(dsc_satiation) + 6 + 3;
char * text = try_malloc(maxl + 1, __func__);
- int test = sprintf(text, "%s%d%s%d", dsc_turn, world.turn, dsc_hitpoints,
- world.player_lifepoints);
+ int test = sprintf(text, "%s%d%s%d%s%d", dsc_turn, world.turn, dsc_hitpoints,
+ world.player_lifepoints, dsc_satiation,
+ world.player_satiation);
exit_trouble(test < 0, __func__, "sprintf");
add_text_with_linebreaks(win, text);
free(text);