Returns true if light can hit this segment/heighth bit
| 888 | } |
| 889 | // Returns true if light can hit this segment/heighth bit |
| 890 | int IsTerrainDynamicChecked(int seg, int bit) { |
| 891 | if (seg < 0 || seg >= (TERRAIN_WIDTH * TERRAIN_DEPTH)) |
| 892 | return 1; |
| 893 | if (bit >= 8) |
| 894 | return 1; |
| 895 | uint8_t val = Terrain_dynamic_table[seg] & (1 << bit); |
| 896 | if (val) |
| 897 | return 1; |
| 898 | return 0; |
| 899 | } |
| 900 | // Gets the dynamic light value for this position |
| 901 | float GetTerrainDynamicScalar(vector *pos, int seg) { |
| 902 | float cube_values[10]; |
no outgoing calls
no test coverage detected