Find the room number of a gun point
| 369 | |
| 370 | // Find the room number of a gun point |
| 371 | int GetGunRoom(vector *p0, int roomnum, int objnum, vector *p1) { |
| 372 | fvi_query fq; |
| 373 | fvi_info hit_data; |
| 374 | int fate; |
| 375 | |
| 376 | fq.p0 = p0; |
| 377 | fq.startroom = roomnum; |
| 378 | fq.p1 = p1; |
| 379 | fq.rad = 0; |
| 380 | fq.thisobjnum = objnum; |
| 381 | fq.ignore_obj_list = NULL; |
| 382 | fq.flags = 0; |
| 383 | |
| 384 | fate = fvi_FindIntersection(&fq, &hit_data); |
| 385 | if (fate != HIT_NONE) |
| 386 | Int3(); |
| 387 | |
| 388 | return hit_data.hit_room; |
| 389 | } |
| 390 | |
| 391 | #define SMALL_WINDOW_W 120 |
| 392 | #define SMALL_WINDOW_H 120 |
no test coverage detected