use float64
This commit is contained in:
@@ -4,19 +4,19 @@ type Race struct {
|
||||
Name string
|
||||
Killed bool
|
||||
|
||||
Votes float32
|
||||
Votes float64
|
||||
VoteFor string
|
||||
|
||||
Drive float32
|
||||
Weapons float32
|
||||
Shields float32
|
||||
Cargo float32
|
||||
Drive float64
|
||||
Weapons float64
|
||||
Shields float64
|
||||
Cargo float64
|
||||
}
|
||||
|
||||
func (r Race) FlightDistance() float32 {
|
||||
func (r Race) FlightDistance() float64 {
|
||||
return r.Drive * 40
|
||||
}
|
||||
|
||||
func (r Race) VisibilityDistance() float32 {
|
||||
func (r Race) VisibilityDistance() float64 {
|
||||
return r.Drive * 30
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user