Float issue
| 245 | |
| 246 | // Float issue |
| 247 | void zLightAddLocal(xEnt* ent) |
| 248 | { |
| 249 | xVec3 default_light_pos = *xEntGetPos(ent); |
| 250 | default_light_pos.y += 1.0f; |
| 251 | if (!ent->entShadow) |
| 252 | { |
| 253 | ent->entShadow = (xEntShadow*)xMemAlloc(gActiveHeap, 40, 0); |
| 254 | xEntInitShadow(*ent, *ent->entShadow); |
| 255 | ent->entShadow->pos = default_light_pos; |
| 256 | ent->entShadow->vec = sDefaultShadowVec; |
| 257 | } |
| 258 | xShadowSetLight(&ent->entShadow->pos, &ent->entShadow->vec, 1.0f); |
| 259 | } |
| 260 | |
| 261 | void zLightRemoveLocalEnv() |
| 262 | { |
no test coverage detected