And some more warning fixes

This commit is contained in:
Pasi Kallinen
2020-04-06 15:41:26 +03:00
parent e215f09ddb
commit d087746fd7
4 changed files with 10 additions and 33 deletions

View File

@@ -1020,11 +1020,11 @@ level_tele()
which branches don't connect to anything deeper;
mainly used to distinguish "can't get there from here"
vs "from anywhere" rather than to control destination */
d_level *branch = In_quest(&u.uz) ? &qstart_level
d_level *qbranch = In_quest(&u.uz) ? &qstart_level
: In_mines(&u.uz) ? &mineend_level
: &sanctum_level;
int deepest = g.dungeons[branch->dnum].depth_start
+ dunlevs_in_dungeon(branch) - 1;
int deepest = g.dungeons[qbranch->dnum].depth_start
+ dunlevs_in_dungeon(qbranch) - 1;
/* if invocation did not yet occur, teleporting into
* the last level of Gehennom is forbidden.