summaryrefslogtreecommitdiff
path: root/src/game/GameModel.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2012-12-06 17:34:32 (GMT)
committer jacob1 <jfu614@gmail.com>2012-12-06 17:34:32 (GMT)
commite5a284a2bafd1e48525b3b3c4fbfe2464cce7c68 (patch)
tree0402ab1a3a03d8b6f90826318eb1416fb3ee5155 /src/game/GameModel.cpp
parent122599763ef9827d7aadc0fe0295c2fbc96e82ab (diff)
downloadpowder-e5a284a2bafd1e48525b3b3c4fbfe2464cce7c68.zip
powder-e5a284a2bafd1e48525b3b3c4fbfe2464cce7c68.tar.gz
fix compiling warnings / error
Diffstat (limited to 'src/game/GameModel.cpp')
-rw-r--r--src/game/GameModel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/GameModel.cpp b/src/game/GameModel.cpp
index 71d9263..b0178af 100644
--- a/src/game/GameModel.cpp
+++ b/src/game/GameModel.cpp
@@ -321,7 +321,7 @@ void GameModel::BuildMenus()
std::cout << "Brushes: Skipping " << brushFiles[i] << ". Could not open" << std::endl;
continue;
}
- int dimension = std::sqrt(brushData.size());
+ int dimension = std::sqrt((float)brushData.size());
if(dimension * dimension != brushData.size())
{
std::cout << "Brushes: Skipping " << brushFiles[i] << ". Invalid bitmap size" << std::endl;