Make use of Facing::rotateY() to reduce boilerplate

This commit is contained in:
Dylan K. Taylor
2018-12-07 10:49:12 +00:00
parent 1cac2b098e
commit 8dbeda69a7
7 changed files with 21 additions and 21 deletions

View File

@ -240,7 +240,7 @@ class Painting extends Entity{
$horizontalStart = (int) (ceil($width / 2) - 1);
$verticalStart = (int) (ceil($height / 2) - 1);
$rotatedFace = Facing::rotate($facing, Facing::AXIS_Y, false);
$rotatedFace = Facing::rotateY($facing, false);
$oppositeSide = Facing::opposite($facing);