Skip to content

Commit

Permalink
fixes #12
Browse files Browse the repository at this point in the history
  • Loading branch information
Stenodyon committed Dec 7, 2019
1 parent 813b5c1 commit 170b2c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/input.zig
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ pub fn on_key_up(state: *State, keysym: sdl.Keysym) !void {
state.copy_buffer.clear();
if ((modifiers & sdl.KMOD_LCTRL) != 0) { // CTRL + D
var min = Vec2i.new(std.math.maxInt(i32), std.math.maxInt(i32));
var max = Vec2i.new(0, 0);
var max = Vec2i.new(std.math.minInt(i32), std.math.minInt(i32));
var entity_iterator = state.selected_entities.iterator();
while (entity_iterator.next()) |entry| {
min.x = std.math.min(min.x, entry.key.x);
Expand Down

0 comments on commit 170b2c4

Please sign in to comment.