Fix broken brand check in xom.cc::_try_brand_switch.
commitfe1d6bdd8595995476fb93781f252b099a217d7f
authorRobert Vollmert <rvollmert@gmx.net>
Thu, 4 Mar 2010 12:49:56 +0000 (4 13:49 +0100)
committerJesse Luehrs <doy@tozt.net>
Fri, 5 Mar 2010 08:08:21 +0000 (5 02:08 -0600)
treecb4f490508109d63316ca080f7adc6e5c2df42e0
parent9945723894265127c330b288dccc418322eee6bb
Fix broken brand check in xom.cc::_try_brand_switch.

This was caught by changing the return type of get_ammo_brand to
special_missile_type. In general, there's a lot of places where
we should be using the proper enum types instead of int.
(cherry picked from commit 07dce66f5a8a29c148680903996ba9e65bb8b52c)
crawl-ref/source/xom.cc