git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@855 c06c8d41-db1a-0410-9941-cceddc491573
JM6GKZ6VMX6FNVOZIDXIV22HGX7YESMIFZFE6EEQVCMFJIEA3FNAC
AJJ6D6JRV6ZAZOAUHYUM2IQG42V6PBALOD4KEMNKSVVAOJXAUCPQC
2ZFV5PKZU3HDHMLJWVWPPFV43NUNUON6YSAITHB26D7L4XIVWUHQC
5UVDIVD4NSXA52U4QMQIVST3GSZJ2A2YZK3RUEXKPM43YVQ7LI5AC
RPOZZWKG5GLPHVZZ7ZKMKS64ZMV2LDCQSARBJFJ6FZOTOKCQO7FAC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
SDLKLUNFGVKDS55DDJZCBAVIB7NL3RRYPTACAY65SCUQKV6APFSAC
T4IH76FA5TWHFOZUJFHLQXQJENJHWTUZZP4EGNA7D4GTZY7D4ZKAC
EHSY6DVGUMI6C67WKET3GDJVLWJWGYBYQONNDK5JVT7BCTHBEZVAC
RVST2QHYJ757ZHK4AUJ5NGPDZ44AD6RVFVXYPKQIBJXZBDNUCHXQC
const int curr_subdungeon_level = player_branch_depth();
if (you.level_type == LEVEL_PANDEMONIUM)
return "- Pandemonium";
if (you.level_type == LEVEL_ABYSS)
return "- The Abyss";
if (you.level_type == LEVEL_LABYRINTH)
return "- a Labyrinth";
// level_type == LEVEL_DUNGEON
char buf[200];
const int youbranch = you.where_are_you;
if ( branches[youbranch].depth == 1 )
snprintf(buf, sizeof buf, "- %s", branches[youbranch].longname);
else
{
const int curr_subdungeon_level = player_branch_depth();
snprintf(buf, sizeof buf, "%d of %s", curr_subdungeon_level,
branches[youbranch].longname);
}
return buf;
}