Removed debugging info.

This commit is contained in:
Richard Davey 2024-07-23 16:38:07 +01:00
parent 0d32e7bcbc
commit ee2110c062

View file

@ -308,27 +308,12 @@ var Tileset = new Class({
this.glTexture = frame.source.glTexture;
if (
!isFinite(bounds.width) ||
!isFinite(bounds.height) ||
!isFinite(bounds.x) ||
!isFinite(bounds.y))
{
console.log('path 0', bounds, texture);
// this.updateTileData(frame.width, frame.height);
// this.updateTileData(bounds.width, bounds.height);
return this;
}
if (frame.width > bounds.width || frame.height > bounds.height)
{
console.log('path 1', bounds);
console.log('path 2', frame.width, frame.height, 'bnds', bounds.width, bounds.height, bounds.x, bounds.y);
this.updateTileData(frame.width, frame.height);
}
else
{
console.log('path 3', frame.width, frame.height, 'bnds', bounds.width, bounds.height, bounds.x, bounds.y);
this.updateTileData(bounds.width, bounds.height, bounds.x, bounds.y);
}