From b3ba50a0dfcba435c3936f5e826329f0067709c5 Mon Sep 17 00:00:00 2001 From: haranp Date: Wed, 27 Jun 2007 17:35:16 +0000 Subject: Various cleanups and goto elimination. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1667 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/describe.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/describe.cc') diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc index 9fc424c628..1bb2ab3626 100644 --- a/crawl-ref/source/describe.cc +++ b/crawl-ref/source/describe.cc @@ -5040,7 +5040,8 @@ void describe_god( god_type which_god, bool give_title ) if (which_god == GOD_NO_GOD) //mv:no god -> say it and go away { cprintf( EOL "You are not religious." ); - goto end_god_info; + getch(); + return; } colour = god_colour(which_god); @@ -5323,8 +5324,5 @@ void describe_god( god_type which_god, bool give_title ) cprintf( "None." EOL ); } - -end_god_info: //end of everything (life, world, universe etc.) - getch(); // wait until keypressed } //mv: That's all folks. -- cgit v1.2.3-54-g00ecf