Mercurial > mm7
diff Arcomage.cpp @ 1113:39eaa6b00141
something to bool cast (performance warning) mostly fixed
author | Grumpy7 |
---|---|
date | Tue, 28 May 2013 00:19:45 +0200 |
parents | 39f42990698f |
children | f947bedb2859 |
line wrap: on
line diff
--- a/Arcomage.cpp Mon May 27 23:29:39 2013 +0200 +++ b/Arcomage.cpp Tue May 28 00:19:45 2013 +0200 @@ -736,7 +736,7 @@ { result = dword_4DF3A4 - 2; if ( dword_4DF3A4 != 2 ) - return result; + return result != 0; v64 = a1; v145 = &stru_505708[a1]; v130 = a1; @@ -1008,7 +1008,7 @@ { --v123; if ( v123 < 0 ) - return am_40BCFB(v64, v137); + return am_40BCFB(v64, v137) != 0; } v137 = dword_4FA9B0[2 * v123]; } @@ -1033,12 +1033,12 @@ { ++v124; if ( v124 >= v136 ) - return am_40BCFB(v64, v137); + return am_40BCFB(v64, v137) != 0; } - return am_40BE0E(v64, dword_4FA9B0[2 * v124]); + return am_40BE0E(v64, dword_4FA9B0[2 * v124]) != 0; } } - return am_40BCFB(v64, v137); + return am_40BCFB(v64, v137) != 0; } v9 = a1; v144 = &stru_505708[a1]; @@ -1300,7 +1300,7 @@ { --v62; if ( v62 < 0 ) - return am_40BCFB(v9, v137); + return am_40BCFB(v9, v137) != 0; } v137 = dword_4FA9B0[2 * v62]; } @@ -1325,12 +1325,12 @@ { ++v63; if ( v63 >= v135 ) - return am_40BCFB(v9, v137); + return am_40BCFB(v9, v137) != 0; } - return am_40BE0E(v9, dword_4FA9B0[2 * v63]); + return am_40BE0E(v9, dword_4FA9B0[2 * v63]) != 0; } } - return am_40BCFB(v9, v137); + return am_40BCFB(v9, v137) != 0; } v3 = 0; v4 = a1; @@ -1355,7 +1355,7 @@ } result = am_40BE0E(v4, v6); } - return result; + return result != 0; } // 408BB4: could not find valid save-restore pair for ebp // 4DF3A4: using guessed type int dword_4DF3A4;