1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vfmt: fix merged param warnings in sokol's particles example and vlib/x/net/udp.v

This commit is contained in:
Delyan Angelov
2020-10-18 13:45:13 +03:00
parent 44753e62ab
commit 2f149e6984
4 changed files with 7 additions and 7 deletions

View File

@ -23,7 +23,7 @@ pub fn new(location vec2.Vec2) &Particle {
return p
}
fn remap(v, min, max, new_min, new_max f64) f64 {
fn remap(v f64, min f64, max f64, new_min f64, new_max f64) f64 {
return (((v - min) * (new_max - new_min)) / (max - min)) + new_min
}

View File

@ -58,7 +58,7 @@ pub fn (mut s System) reset() {
}
}
pub fn (mut s System) explode(x, y f32) {
pub fn (mut s System) explode(x f32, y f32) {
mut reserve := 500
center := vec2.Vec2{x, y}
mut p := &Particle(0)