diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-09-26 11:42:03 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-09-26 11:42:03 +0000 |
commit | 592c6a235e81c40fd67cddaa429326d2397979a9 (patch) | |
tree | 80d525ad032fcca95345d42b68f2f621b1aeb668 /crawl-ref/source/travel.cc | |
parent | e8c6cd983a488b452fa1b8355c38c5fa92e626a3 (diff) | |
download | crawl-ref-592c6a235e81c40fd67cddaa429326d2397979a9.tar.gz crawl-ref-592c6a235e81c40fd67cddaa429326d2397979a9.zip |
Killed a lot of libunix.cc which is no longer necessary with the new
command dispatch mechanism.
Cleaned up all remaining variable shadowing warnings.
Added -Wshadow and -pedantic to CFLAGS.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup@135 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/travel.cc')
-rw-r--r-- | crawl-ref/source/travel.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/crawl-ref/source/travel.cc b/crawl-ref/source/travel.cc index ece94608ba..5a594fcaa8 100644 --- a/crawl-ref/source/travel.cc +++ b/crawl-ref/source/travel.cc @@ -752,10 +752,10 @@ void start_running(void) */ command_type travel() { - char x,y; - char *move_x = &x; - char *move_y = &y; - x = y = 0; + char holdx, holdy; + char *move_x = &holdx; + char *move_y = &holdy; + holdx = holdy = 0; command_type result = CMD_NO_CMD; @@ -1486,14 +1486,14 @@ static std::vector<unsigned char> get_known_branches() BRANCH_HALL_OF_ZOT }; - std::vector<unsigned char> branches; + std::vector<unsigned char> result; for (unsigned i = 0; i < sizeof list_order / sizeof(*list_order); ++i) { if (is_known_branch(list_order[i])) - branches.push_back(list_order[i]); + result.push_back(list_order[i]); } - return branches; + return result; } static int prompt_travel_branch() |