More type conversion warning cleanup.

This commit is contained in:
wrenczes@gmail.com
2010-11-07 12:00:23 +00:00
parent 5d907f5abe
commit a053c0d59e
10 changed files with 28 additions and 28 deletions
+2 -2
View File
@@ -95,12 +95,12 @@ float PriceList::difficultyScalar(float price, int cardid){
return (price + price * badluck);
}
int PriceList::getPurchasePrice(int cardid){
float p = difficultyScalar(getPrice(cardid),cardid);
float p = difficultyScalar((float)getPrice(cardid),cardid);
if(p < 2) p = 2; //Prevents "Sell for 0 credits"
return (int)p;
}
int PriceList::getOtherPrice(int amt){
float p = difficultyScalar(amt,0);
float p = difficultyScalar((float)amt,0);
if(p < 2) p = 2;
return (int)p;
}