mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-05-28 00:01:54 +08:00
Fixed variable name
Actually in this case "name" is used in a function and is not necessary for lookups, but I think that if future changes to both room.js and outside.js occur, authors will appreciate consistency in scripts (also fixes indentation in comments).
This commit is contained in:
+3
-3
@@ -364,11 +364,11 @@ var Outside = {
|
||||
|
||||
updateVillageRow: function(name, num, village) {
|
||||
var id = 'building_row_' + name.replace(' ', '-');
|
||||
name = _(name);
|
||||
lname = _(name);
|
||||
var row = $('div#' + id, village);
|
||||
if(row.length === 0 && num > 0) {
|
||||
row = $('<div>').attr('id', id).addClass('storeRow');
|
||||
$('<div>').addClass('row_key').text(name).appendTo(row);
|
||||
$('<div>').addClass('row_key').text(lname).appendTo(row);
|
||||
$('<div>').addClass('row_val').text(num).appendTo(row);
|
||||
$('<div>').addClass('clear').appendTo(row);
|
||||
var curPrev = null;
|
||||
@@ -376,7 +376,7 @@ var Outside = {
|
||||
var child = $(this);
|
||||
if(child.attr('id') != 'population') {
|
||||
var cName = child.children('.row_key').text();
|
||||
if(cName < name) {
|
||||
if(cName < lname) {
|
||||
curPrev = child.attr('id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user