(Mchar, Xoff, Yoff)
| 354 | } |
| 355 | |
| 356 | near PutOnMap (Mchar, Xoff, Yoff) |
| 357 | int Mchar, Xoff, Yoff; |
| 358 | { |
| 359 | register int Xloc, Yloc, temp; |
| 360 | |
| 361 | if (Mchar == 0) return; |
| 362 | Xloc = MapX + Xoff; |
| 363 | Yloc = MapY + Yoff; |
| 364 | if (TestBounds (Xloc, Yloc) == FALSE) return (FALSE); |
| 365 | if (temp = Map [Xloc][Yloc]) { |
| 366 | temp = temp & 1023; |
| 367 | if (temp == RIVER) |
| 368 | if (Mchar != CHANNEL) |
| 369 | return (FALSE); |
| 370 | if (temp == CHANNEL) return (FALSE); |
| 371 | } |
| 372 | Map [Xloc][Yloc] = Mchar; |
| 373 | } |
| 374 | |
| 375 | far TestBounds(x, y) |
| 376 | register int x, y; |
no test coverage detected