desktop: fix negative damage values

This commit is contained in:
Victor Brekenfeld 2021-12-14 14:38:33 +01:00
parent 94968e2d0f
commit d7350d18ee
1 changed files with 1 additions and 1 deletions

View File

@ -582,7 +582,7 @@ impl Space {
.iter() .iter()
.filter(|geo| geo.overlaps(wgeo)) .filter(|geo| geo.overlaps(wgeo))
.map(|geo| geo.intersection(wgeo)) .map(|geo| geo.intersection(wgeo))
.map(|geo| Rectangle::from_loc_and_size(geo.loc - wgeo.loc, geo.size)) .map(|geo| Rectangle::from_loc_and_size(geo.loc - loc, geo.size))
.collect::<Vec<_>>(); .collect::<Vec<_>>();
slog::trace!( slog::trace!(
self.logger, self.logger,