Skip to content

Commit

Permalink
Update to 1.9.2a using decompiled source code
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSaiyan99-SS99 committed Jun 23, 2024
1 parent d3f665e commit 62b08ff
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/watabou/gltextures/TextureCache.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public static SmartTexture createSolid( int color ) {

public static SmartTexture createGradient( int width, int height, int... colors ) {

final String key = "" + width + "x" + height + ":" + colors;
final String key = width + "x" + height + ":" + colors;

if (all.containsKey( key )) {

Expand Down
6 changes: 5 additions & 1 deletion src/main/java/com/watabou/noosa/Tilemap.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ public void map( int[] data, int cols ) {
updated.set( 0, 0, mapWidth, mapHeight );
}

protected int getTile( int pos ) {
return data[pos];
}

protected void updateVertices() {

float y1 = cellH * updated.top;
Expand All @@ -91,7 +95,7 @@ protected void updateVertices() {

for (int j=updated.left; j < updated.right; j++) {

RectF uv = tileset.get( data[pos++] );
RectF uv = tileset.get( getTile( pos++ ) );

vertices[0] = x1;
vertices[1] = y1;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/watabou/utils/PointF.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,6 @@ public static float angle( PointF start, PointF end ) {

@Override
public String toString() {
return "" + x + ", " + y;
return x + ", " + y;
}
}

0 comments on commit 62b08ff

Please sign in to comment.