quiet loud warnings in gcc

This commit is contained in:
Glenn Maynard
2003-02-17 19:49:55 +00:00
parent 3c03bf9177
commit 5a179983d1
+2 -2
View File
@@ -71,7 +71,7 @@ void DifficultyRating::SetOrientation(int Orientation)
{ {
//damn! in that case everything is to the side of the middle.... //damn! in that case everything is to the side of the middle....
int incrementor=1; // start on one... 0 is reserved for 'central' (read odd number) int incrementor=1; // start on one... 0 is reserved for 'central' (read odd number)
int offset=0.5f; float offset=0.5f;
for(int i=0; i<iMaxElements; i++) for(int i=0; i<iMaxElements; i++)
{ {
if(incrementor == 1) // + offset if(incrementor == 1) // + offset
@@ -90,7 +90,7 @@ void DifficultyRating::SetOrientation(int Orientation)
else else
{ {
int incrementor=0; int incrementor=0;
int offset=0; float offset=0;
for(int i=0; i<iMaxElements; i++) for(int i=0; i<iMaxElements; i++)
{ {
if(incrementor == 0) // special case.... this means we're in the middle. if(incrementor == 0) // special case.... this means we're in the middle.