/[enigma]/enigma/src/items.cc
ViewVC logotype

Diff of /enigma/src/items.cc

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

revision 1.82 by mhawlisch, Fri Sep 5 14:28:39 2003 UTC revision 1.83 by reallysoft, Sun Sep 7 09:56:55 2003 UTC
# Line 1001  namespace Line 1001  namespace
1001              return false;              return false;
1002          }          }
1003    
1004          void message(const string &msg, const Value &val) {          void message(const string &msg, const Value &) {
1005              if (msg == "grow") {              if (msg == "grow") {
1006                  start_growing();                  start_growing();
1007              }              }
# Line 1019  namespace Line 1019  namespace
1019              world::SetStone(get_pos(), st);              world::SetStone(get_pos(), st);
1020              world::KillItem(get_pos());              world::KillItem(get_pos());
1021          }          }
1022            
1023          const char* get_stone_model() {          const char* get_stone_model() {
1024                const char *model = 0;
1025    
1026              switch( type) {              switch( type) {
1027                  case WOOD:    return( "st-wood-growing"); break;                  case WOOD:    model = "st-wood-growing"; break;
1028                  case NOWOOD:  return( "st-greenbrown-growing"); break;                  case NOWOOD:  model = "st-greenbrown-growing"; break;
1029                  case VULCANO: return( "st-vulcano-growing"); break;                  case VULCANO: model = "st-vulcano-growing"; break;
1030              }              }
1031    
1032                return model;
1033          }          }
1034      };      };
1035  }  }
# Line 1768  namespace Line 1772  namespace
1772                  if( Stone *st = GetStone( p)) {                  if( Stone *st = GetStone( p)) {
1773                      if( ! st->is_floating())                      if( ! st->is_floating())
1774                          spread = false; // only hollow stones allow the fire to spread                          spread = false; // only hollow stones allow the fire to spread
1775                        
1776                      string model = st->get_kind();                      string model = st->get_kind();
1777                      if( model == "st-wood1" || model == "st-wood2") {                      if( model == "st-wood1" || model == "st-wood2") {
1778                          KillStone( p); // The fire has burnt away the wooden stone                          KillStone( p); // The fire has burnt away the wooden stone

Legend:
Removed from v.1.82  
changed lines
  Added in v.1.83

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