Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

Commit

Permalink
switch x/y around
Browse files Browse the repository at this point in the history
  • Loading branch information
Hello71 committed Feb 12, 2012
1 parent b27dc56 commit d865a72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/display.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ window.displayBuildings = function () {
});
for (var i = 0; i < 9; i++) {
for (var j = 0; j < 9; j++) {
$($buildingRows[i][j]).append($("<a class=\"empty-building\" href='/build.cfm?x=" + (i + 1) + "&y=" + (j + 1) + "&villageID=" + encodeURIComponent(window.village) + "' target='_top'>"));
$($buildingRows[i][j]).append($("<a class=\"empty-building\" href='/build.cfm?x=" + (j + 1) + "&y=" + (i + 1) + "&villageID=" + encodeURIComponent(window.village) + "' target='_top'>"));
}
}
$.each(window.data.village[window.village].buildings, function (index, buildingRow) {
Expand Down

0 comments on commit d865a72

Please sign in to comment.