Adds object obj to terrain segment n. This object will be rendered immediately following the rendering of this terrain segment
| 3594 | // This object will be rendered immediately following the rendering of this |
| 3595 | // terrain segment |
| 3596 | int AddRenderObjectToTerrainSeg(int n, int objnum) { |
| 3597 | // Uses a linked list to keep track of what objects are in this segment |
| 3598 | #if (!defined(RELEASE) || defined(NEWEDITOR)) |
| 3599 | if (Terrain_seg_render_objs[n] == objnum) |
| 3600 | return 0; |
| 3601 | // New object points at first in list |
| 3602 | render_next[objnum] = Terrain_seg_render_objs[n]; |
| 3603 | // New object becomes first in list |
| 3604 | Terrain_seg_render_objs[n] = objnum; |
| 3605 | #endif |
| 3606 | |
| 3607 | return (0); |
| 3608 | } |
no outgoing calls
no test coverage detected