diff options
author | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-06-25 23:57:11 -0700 |
---|---|---|
committer | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-06-25 23:57:11 -0700 |
commit | 8450e6c8d00e3c2b5c8db51718f3ade4ed5adc3a (patch) | |
tree | 5d1c5d3ec9af598186b2fc94fbbd4a87ff642ddd /crawl-ref/source/player.cc | |
parent | 0a05dcac42b8f2d854583b11e71ec28f187006ac (diff) | |
download | crawl-ref-8450e6c8d00e3c2b5c8db51718f3ade4ed5adc3a.tar.gz crawl-ref-8450e6c8d00e3c2b5c8db51718f3ade4ed5adc3a.zip |
Clean up some string format code
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index a234f1737b..5235565938 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -364,11 +364,10 @@ bool swap_check(monster* mons, coord_def &loc, bool quiet) } // prompt when swapping into known zot traps - string prompt = make_stringf("Do you really want to swap %s into the Zot trap?", - mons->name(DESC_YOUR).c_str()); if (!quiet && find_trap(loc) && find_trap(loc)->type == TRAP_ZOT && env.grid(loc) != DNGN_UNDISCOVERED_TRAP - && !yes_or_no(prompt.c_str())) + && !yes_or_no("Do you really want to swap %s into the Zot trap?", + mons->name(DESC_YOUR).c_str())) { return false; } |