Skip to content

Commit

Permalink
Fixed format string
Browse files Browse the repository at this point in the history
  • Loading branch information
luciensadi committed Feb 9, 2024
1 parent 44f462f commit 3c62769
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spec_procs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7713,7 +7713,7 @@ void payout_slots(struct obj_data *slots) {
send_to_char(ch, "You receive %d nuyen (a %dx payout)\r\n", amount_to_pay, payout_multiplier);
snprintf(buf, sizeof(buf), "$n receives %d nuyen (a %dx payout).", amount_to_pay, payout_multiplier);
act(buf, FALSE, ch, NULL, NULL, TO_ROOM);
mudlog_vfprintf(ch, LOG_GRIDLOG, "%s got %d nuyen from a %d-nuyen bet on %s (a %x payout).",
mudlog_vfprintf(ch, LOG_GRIDLOG, "%s got %d nuyen from a %d-nuyen bet on %s (a %dx payout).",
GET_CHAR_NAME(ch),
amount_to_pay,
GET_SLOTMACHINE_LAST_SPENT(slots),
Expand Down Expand Up @@ -7820,7 +7820,7 @@ SPECIAL(slot_machine) {
return TRUE;
}

if (CMD_IS("value") && IS_SENATOR(ch)) {
if (IS_SENATOR(ch) && CMD_IS("value")) {
send_to_char(ch, "This slot machine has removed %d nuyen from the economy. Globally, slots have removed %ld nuyen.\r\n",
GET_SLOTMACHINE_MONEY_EXTRACTED(slots),
total_amount_removed_from_economy_by_slots);
Expand Down

0 comments on commit 3c62769

Please sign in to comment.