SDL.zig icon indicating copy to clipboard operation
SDL.zig copied to clipboard

Weird condition in Sdk.zig

Open leecannon opened this issue 3 years ago • 1 comments
trafficstars

The second if's conditions are clearly wrong (both are always false), shouldn't detected_target be involved?

https://github.com/MasterQ32/SDL.zig/blob/9bef3552c4a031193a79884107466ea6ce8a5f4f/Sdk.zig#L235-L236

leecannon avatar May 08 '22 16:05 leecannon

Yep, that's true. I guess i have to recreate that part of the logic, it's pretty complex sadly

ikskuh avatar May 08 '22 16:05 ikskuh