Skip to content

Commit

Permalink
FIX: Just use default radius (64) if one isn't specified for point li…
Browse files Browse the repository at this point in the history
…ghts
  • Loading branch information
magicaldave committed Oct 17, 2024
1 parent f4e515d commit 2ba011b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/game_object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,7 @@ pub fn point_light(entity_props: &HashMap<&String, &String>, ref_id: &str) -> TE
weight: 0.0,
value: 0,
time: 0,
radius: get_prop("Radius", entity_props)
.parse()
.expect("Cannot fail to extract from default function"),
radius: get_prop("Radius", entity_props).parse().unwrap_or(64),
flags: LightFlags::from_bits(
get_prop("LightFlags", entity_props)
.parse::<u32>()
Expand Down

0 comments on commit 2ba011b

Please sign in to comment.