make 180 match the other reassignments
This commit is contained in:
parent
1124022f4f
commit
6ed45d319b
@ -124,8 +124,7 @@ func rotateShip(current rune, degrees int, rl rune) rune {
|
|||||||
|
|
||||||
func rotateWaypoint(w waypoint, action rune, vector int) waypoint {
|
func rotateWaypoint(w waypoint, action rune, vector int) waypoint {
|
||||||
if vector == 180 {
|
if vector == 180 {
|
||||||
w.horizontal = -w.horizontal
|
w.horizontal, w.vertical = -w.horizontal, -w.vertical
|
||||||
w.vertical = -w.vertical
|
|
||||||
} else if action == 'R' {
|
} else if action == 'R' {
|
||||||
if vector == 90 {
|
if vector == 90 {
|
||||||
w.horizontal, w.vertical = w.vertical, -w.horizontal
|
w.horizontal, w.vertical = w.vertical, -w.horizontal
|
||||||
|
Loading…
Reference in New Issue
Block a user