From f6b8a1eea325bf2a8e9e81bf8d57c84d22787e6c Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Tue, 10 Jun 2008 15:29:56 +0000 Subject: Clean-up (renaming static methods and comments) in a number of files. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5703 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/spl-cast.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/spl-cast.cc') diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc index a44084f7e7..077177ffca 100644 --- a/crawl-ref/source/spl-cast.cc +++ b/crawl-ref/source/spl-cast.cc @@ -3815,16 +3815,16 @@ int spell_power_colour(spell_type spell) static int _power_to_barcount( int power ) { - if ( power == -1 ) + if (power == -1) return -1; const int breakpoints[] = { 5, 10, 15, 25, 35, 50, 75, 100, 150 }; int result = 0; - for ( unsigned int i = 0; i < ARRAYSZ(breakpoints); ++i ) - if ( power > breakpoints[i] ) + for (unsigned int i = 0; i < ARRAYSZ(breakpoints); ++i) + if (power > breakpoints[i]) ++result; - return result + 1; + return (result + 1); } int spell_power_bars( spell_type spell ) -- cgit v1.2.3-54-g00ecf