MATT! Change this function to sort by state once you change the scorch system!
| 1619 | } |
| 1620 | // MATT! Change this function to sort by state once you change the scorch system! |
| 1621 | void RenderScorchesForRoom(room *rp) { |
| 1622 | int i; |
| 1623 | if (!Detail_settings.Scorches_enabled) |
| 1624 | return; |
| 1625 | // Set alpha, transparency, & lighting for this face |
| 1626 | rend_SetAlphaType(AT_LIGHTMAP_BLEND); |
| 1627 | rend_SetAlphaValue(255); |
| 1628 | rend_SetLighting(LS_NONE); |
| 1629 | rend_SetColorModel(CM_MONO); |
| 1630 | rend_SetOverlayType(OT_NONE); |
| 1631 | rend_SetZBias(-.5); |
| 1632 | rend_SetZBufferWriteMask(0); |
| 1633 | |
| 1634 | // Select texture type |
| 1635 | rend_SetTextureType(TT_LINEAR); |
| 1636 | |
| 1637 | for (i = 0; i < Num_scorches_to_render; i++) { |
| 1638 | DrawScorches(ROOMNUM(rp), Scorches_to_render[i]); |
| 1639 | } |
| 1640 | // Reset rendering states |
| 1641 | rend_SetZBias(0); |
| 1642 | rend_SetZBufferWriteMask(1); |
| 1643 | } |
| 1644 | // Draw the specified face |
| 1645 | // Parameters: rp - pointer to the room the face is un |
| 1646 | // facenum - which face in the specified room |
no test coverage detected