Make sure we fallthrough for the NES cases
This commit is contained in:
parent
c2e3c9f090
commit
5814ac95b8
1 changed files with 3 additions and 0 deletions
|
@ -85,8 +85,11 @@ func (d Bearing) Vector() Vector {
|
|||
func (d Bearing) IsCardinal() bool {
|
||||
switch d {
|
||||
case North:
|
||||
fallthrough
|
||||
case East:
|
||||
fallthrough
|
||||
case South:
|
||||
fallthrough
|
||||
case West:
|
||||
return true
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue