MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / GetGunRoom

Function GetGunRoom

Descent3/SmallViews.cpp:371–389  ·  view source on GitHub ↗

Find the room number of a gun point

Source from the content-addressed store, hash-verified

369
370// Find the room number of a gun point
371int 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

Callers 1

DrawSmallViewsFunction · 0.85

Calls 1

fvi_FindIntersectionFunction · 0.85

Tested by

no test coverage detected