mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Remove clamp in favor of SDL_clamp
For the same reasons as I removed VVV_min/max in favor of SDL_min/max in
aa7b63fa5f, I'm doing the same thing here.
This commit is contained in:
@@ -2306,8 +2306,8 @@ void editorinput(void)
|
||||
break;
|
||||
}
|
||||
|
||||
ed.levx = clamp(help.Int(coord_x) - 1, 0, cl.mapwidth - 1);
|
||||
ed.levy = clamp(help.Int(coord_y) - 1, 0, cl.mapheight - 1);
|
||||
ed.levx = SDL_clamp(help.Int(coord_x) - 1, 0, cl.mapwidth - 1);
|
||||
ed.levy = SDL_clamp(help.Int(coord_y) - 1, 0, cl.mapheight - 1);
|
||||
graphics.backgrounddrawn = false;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user