mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-29 02:40:47 +02:00
Fix a few warnings
This commit is contained in:
@@ -235,7 +235,7 @@ std::unique_ptr<VideoBuffer> SignTool::GetIcon(int toolID, Vec2<int> size)
|
|||||||
void SignTool::Click(Simulation * sim, Brush const &brush, ui::Point position)
|
void SignTool::Click(Simulation * sim, Brush const &brush, ui::Point position)
|
||||||
{
|
{
|
||||||
int signX, signY, signW, signH, signIndex = -1;
|
int signX, signY, signW, signH, signIndex = -1;
|
||||||
for (size_t i = 0; i < sim->signs.size(); i++)
|
for (int i = 0; i < int(sim->signs.size()); i++)
|
||||||
{
|
{
|
||||||
sim->signs[i].getDisplayText(sim, signX, signY, signW, signH);
|
sim->signs[i].getDisplayText(sim, signX, signY, signW, signH);
|
||||||
if (position.X > signX && position.X < signX+signW && position.Y > signY && position.Y < signY+signH)
|
if (position.X > signX && position.X < signX+signW && position.Y > signY && position.Y < signY+signH)
|
||||||
|
Reference in New Issue
Block a user