Fixed compiler warning.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8379 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2011-04-19 03:56:50 +00:00
parent 5cc146fefe
commit b807a3e608

View File

@ -1305,8 +1305,11 @@ void Track::itemCommand(const Vec3 &xyz, Item::ItemType type,
// in case that the point is too close to the actual surface
// (e.g. floating point errors can cause a problem here).
loc += Vec3(0,0.1f,0);
#ifndef DEBUG
// Avoid unused variable warning in case of non-debug compilation.
setTerrainHeight(&loc);
#else
bool drop_success = setTerrainHeight(&loc);
#ifdef DEBUG
if(!drop_success)
{
printf("Item at position (%f,%f,%f) can not be dropped\n",