mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Fix more type promotion mistakes
Someone of these are probably actual bugs and gcc totally doesn't care to warn about them, wtf? This issue seems to be new with the IrrlichtMt update.
This commit is contained in:
@@ -3708,11 +3708,11 @@ bool Game::nodePlacement(const ItemDefinition &selected_def,
|
||||
break;
|
||||
};
|
||||
case NDT_SIGNLIKE: {
|
||||
rotate90 = abs(pdir.X) < abs(pdir.Z);
|
||||
rotate90 = std::abs(pdir.X) < std::abs(pdir.Z);
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
rotate90 = abs(pdir.X) > abs(pdir.Z);
|
||||
rotate90 = std::abs(pdir.X) > std::abs(pdir.Z);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user