]> granicus.if.org Git - nethack/commit
OSX vs apple core dump
authorPatR <rankin@nethack.org>
Fri, 30 Oct 2015 07:20:59 +0000 (00:20 -0700)
committerPatR <rankin@nethack.org>
Fri, 30 Oct 2015 07:20:59 +0000 (00:20 -0700)
commit1da6486e7bf9b22521171ea97ab1c5e42f548239
treee49f6084e94e8dfe6f64e9b864b6bd47c97bb45b
parent41a40d41a0806a6d9d1012b9d970ba0de39190cc
OSX vs apple core dump

Some reformatting mutated into a code change:  OSX gets code from two
conditional blocks
  '#if UNIX: eat apple or pear, give "core dump" message'
  '#if MAC || OSX: eat apple, give "It's a Macintosh" message'
but the second wouldn't be chosen due to the if-then-else logic having
already handled obj->otyp==APPLE before it was reached.  Reorder them
so that OSX gets the Macintosh message for apples and the core dump
message for pears.
src/eat.c