projects
/
lantea.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
decacd7
)
fix a warning about an uninitialized var and let it not look like an argument
author
Robert Kaiser
<robert@widebook.box.kairo.at>
Sat, 26 Apr 2014 13:29:59 +0000
(15:29 +0200)
committer
Robert Kaiser
<robert@widebook.box.kairo.at>
Sat, 26 Apr 2014 13:29:59 +0000
(15:29 +0200)
js/map.js
patch
|
blob
|
blame
|
history
diff --git
a/js/map.js
b/js/map.js
index b734113d1cec49c88f95ed76bf2bb60ac36a20a3..926177646f9a2f525f293d423fc3cf521eeef1a4 100644
(file)
--- a/
js/map.js
+++ b/
js/map.js
@@
-478,8
+478,8
@@
var gMap = {
y: Math.ceil((gMap.pos.y + gMap.baseDim.ht / 2) / gMap.baseDim.tsize) + 1,
z: gMap.pos.z});
console.log("In range: " + tMin.x + "," + tMin.y + "," + tMin.z + " - " + tMax.x + "," + tMax.y + "," + tMax.z);
y: Math.ceil((gMap.pos.y + gMap.baseDim.ht / 2) / gMap.baseDim.tsize) + 1,
z: gMap.pos.z});
console.log("In range: " + tMin.x + "," + tMin.y + "," + tMin.z + " - " + tMax.x + "," + tMax.y + "," + tMax.z);
- for (
aT
ileKey in gMap.glTextures) {
- var keyMatches =
aT
ileKey.match(/([^:]+)::(\d+),(\d+),(\d+)/);
+ for (
var t
ileKey in gMap.glTextures) {
+ var keyMatches =
t
ileKey.match(/([^:]+)::(\d+),(\d+),(\d+)/);
if (keyMatches && keyMatches[1] != "loading") {
var txData = {
style: keyMatches[1],
if (keyMatches && keyMatches[1] != "loading") {
var txData = {
style: keyMatches[1],
@@
-506,8
+506,8
@@
var gMap = {
}
if (delTx) {
// Delete texture from GL and from the array we are holding.
}
if (delTx) {
// Delete texture from GL and from the array we are holding.
- gMap.gl.deleteTexture(gMap.glTextures[
aT
ileKey]);
- delete gMap.glTextures[
aT
ileKey];
+ gMap.gl.deleteTexture(gMap.glTextures[
t
ileKey]);
+ delete gMap.glTextures[
t
ileKey];
}
}
}
}
}
}