/[enigma]/enigma/player.cc
ViewVC logotype

Diff of /enigma/player.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13 by dheck, Sun Nov 3 14:12:23 2002 UTC revision 1.14 by dheck, Wed Dec 4 19:52:03 2002 UTC
# Line 127  Inventory::activate_first() Line 127  Inventory::activate_first()
127    
128          switch (it->activate(ac, p)) {          switch (it->activate(ac, p)) {
129          case world::ITEM_DROP:          case world::ITEM_DROP:
130              // only drop if no item underneath and floor allows it ###              // only drop if no item underneath and actor allows it ###
131              if (world::GetItem(p) == 0) {              if (world::GetItem(p) == 0 && ac->can_drop_items()) {
132                  items.erase(items.begin());                  items.erase(items.begin());
133                  redraw();                  redraw();
134                  world::SetItem(p, it);                  world::SetItem(p, it);
# Line 197  player::NewWorld() Line 197  player::NewWorld()
197      SetCurrentPlayer(0);      SetCurrentPlayer(0);
198  }  }
199    
200    void
201    player::LevelFinished()
202    {
203        for (unsigned i=0; i<players.size(); ++i)
204        {
205            if (Actor *a = players[i].main_actor) {
206                world::GrabActor(a);
207                display::ReplaceSprite(a->get_spriteid(), "ring-anim");
208            }
209        }
210    }
211    
212    
213  Inventory *  Inventory *
214  player::GetInventory(int iplayer)  player::GetInventory(int iplayer)
215  {  {

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26