- printf("\n= %d kilogram%s (%d%%)\n", carrying, (carrying == 1 ? "." : "s."), (WEIGHT ? carrying * 100 / WEIGHT : -1));
- printf("Your arms are %d%% full.\n",
- (CUMBER ? encumber * 100 / CUMBER : -1));
+ if (WEIGHT == 0) {
+ printf("\n= %d kilogram%s",
+ carrying,
+ (carrying == 1 ? "." : "s."));
+ printf(" (can't lift any weight%s)\n",
+ (carrying ?
+ " or move with what you have" :
+ ""));
+ } else
+ printf("\n= %d kilogram%s (%d%%)\n",
+ carrying,
+ (carrying == 1 ? "." : "s."),
+ carrying * 100 / WEIGHT);
+ if (CUMBER == 0) {
+ printf("Your arms can't pick ");
+ printf("anything up.\n");
+ } else
+ printf("Your arms are %d%% full.\n",
+ encumber * 100 / CUMBER);