Fix bug in yoob.Playfield.map.
Chris Pressey
4 years ago
0 | 0 |
Changelog
|
1 | 1 |
=========
|
2 | 2 |
|
|
3 |
* version 0.13
|
|
4 |
|
|
5 |
Fixed NaN bugs in element-factory.
|
|
6 |
|
|
7 |
Fixed a bug in `yoob.Playfield.map`.
|
|
8 |
|
3 | 9 |
* version 0.12
|
4 | 10 |
|
5 | 11 |
Fixed a bug in `yoob.Cursor.clone`.
|
0 | 0 |
yoob.js
|
1 | 1 |
=======
|
2 | 2 |
|
3 | |
*Version 0.12. Everything subject to change.*
|
|
3 |
*Version 0.13-PRE. Everything subject to change.*
|
4 | 4 |
*For version history, see the file [HISTORY.markdown](HISTORY.markdown).*
|
5 | 5 |
|
6 | 6 |
yoob.js started out as the HTML5 counterpart to [yoob][], but has since
|
0 | 0 |
/*
|
1 | |
* This file is part of yoob.js version 0.12
|
|
1 |
* This file is part of yoob.js version 0.13-PRE
|
2 | 2 |
* Available from https://github.com/catseye/yoob.js/
|
3 | 3 |
* This file is in the public domain. See http://unlicense.org/ for details.
|
4 | 4 |
*/
|
|
273 | 273 |
if (maxDy === undefined) maxDy = 0;
|
274 | 274 |
for (var y = this.minY + minDy; y <= this.maxY + maxDy; y++) {
|
275 | 275 |
for (var x = this.minX + minDx; x <= this.maxX + maxDx; x++) {
|
276 | |
destPf.putDirty(x, y, fun(pf, x, y));
|
|
276 |
destPf.putDirty(x, y, fun(this, x, y));
|
277 | 277 |
}
|
278 | 278 |
}
|
279 | 279 |
destPf.recalculateBounds();
|