Changeset 1460 for trunk

Show
Ignore:
Timestamp:
07/02/09 21:42:15 (9 months ago)
Author:
takkaria
Message:

Make teleport level work in ironman before DL 99, always moving downward. (Eddie Grove)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/spells1.c

    r1458 r1460  
    280280void teleport_player_level(void) 
    281281{ 
    282         if (OPT(adult_ironman)) 
    283         { 
    284                 msg_print("Nothing happens."); 
    285                 return; 
    286         } 
    287  
    288  
    289         if (!p_ptr->depth) 
     282 
     283        if (is_quest(p_ptr->depth) || (p_ptr->depth >= MAX_DEPTH-1)) 
     284        { 
     285                if (OPT(adult_ironman)) 
     286                { 
     287                        msg_print("Nothing happens."); 
     288                        return; 
     289                } 
     290 
     291                message(MSG_TPLEVEL, 0, "You rise up through the ceiling."); 
     292 
     293                /* New depth */ 
     294                p_ptr->depth--; 
     295 
     296                /* Leaving */ 
     297                p_ptr->leaving = TRUE; 
     298        } 
     299 
     300        else if ((!p_ptr->depth) || (OPT(adult_ironman))) 
    290301        { 
    291302                message(MSG_TPLEVEL, 0, "You sink through the floor."); 
     
    293304                /* New depth */ 
    294305                p_ptr->depth++; 
    295  
    296                 /* Leaving */ 
    297                 p_ptr->leaving = TRUE; 
    298         } 
    299  
    300         else if (is_quest(p_ptr->depth) || (p_ptr->depth >= MAX_DEPTH-1)) 
    301         { 
    302                 message(MSG_TPLEVEL, 0, "You rise up through the ceiling."); 
    303  
    304                 /* New depth */ 
    305                 p_ptr->depth--; 
    306306 
    307307                /* Leaving */