| 373 | } |
| 374 | |
| 375 | void AddL1Objs(int x1, int y1, int x2, int y2) |
| 376 | { |
| 377 | int i, j, pn; |
| 378 | |
| 379 | for (j = y1; j < y2; j++) { |
| 380 | for (i = x1; i < x2; i++) { |
| 381 | pn = dPiece[i][j]; |
| 382 | if (pn == 270) |
| 383 | AddObject(OBJ_L1LIGHT, i, j); |
| 384 | if (pn == 44 || pn == 51 || pn == 214) |
| 385 | AddObject(OBJ_L1LDOOR, i, j); |
| 386 | if (pn == 46 || pn == 56) |
| 387 | AddObject(OBJ_L1RDOOR, i, j); |
| 388 | } |
| 389 | } |
| 390 | } |
| 391 | |
| 392 | void AddL2Objs(int x1, int y1, int x2, int y2) |
| 393 | { |
no test coverage detected