Quote:
Originally Posted by DustyPorViva
Don't know what you mean. All I know is it doesn't work like it should.
Stefan, could this be fixed please? I don't want to rewrite a WHOLE movement system to accommodate for a bug.
|
I've never trusted the onwall2 or onwater2 functions, but
For now anyway, maybe just use a solution like the following?
PHP Code:
function onwater3(tx, ty, w, h) {
if (w == 1) w = 2;
if (h == 1) h = 2;
return onwater2(tx, ty, w, h);
}
Edit: I see that you might be using more than just 1 tile checks.