@@ -62,28 +62,28 @@ protected function module(int $x, int $y, int $M_TYPE):void{
6262 // Outer rounding
6363 // ------------------
6464
65- if ($ neighbours & (1 << 7 )){ // neighbour left
65+ if (( $ neighbours & (1 << 7 ) )){ // neighbour left
6666 // top left
6767 imagefilledrectangle ($ this ->image , $ x1 , $ y1 , ($ x1 + $ rectsize ), ($ y1 + $ rectsize ), $ light );
6868 // bottom left
6969 imagefilledrectangle ($ this ->image , $ x1 , ($ y2 - $ rectsize ), ($ x1 + $ rectsize ), $ y2 , $ light );
7070 }
7171
72- if ($ neighbours & (1 << 3 )){ // neighbour right
72+ if (( $ neighbours & (1 << 3 ) )){ // neighbour right
7373 // top right
7474 imagefilledrectangle ($ this ->image , ($ x2 - $ rectsize ), $ y1 , $ x2 , ($ y1 + $ rectsize ), $ light );
7575 // bottom right
7676 imagefilledrectangle ($ this ->image , ($ x2 - $ rectsize ), ($ y2 - $ rectsize ), $ x2 , $ y2 , $ light );
7777 }
7878
79- if ($ neighbours & (1 << 1 )){ // neighbour top
79+ if (( $ neighbours & (1 << 1 ) )){ // neighbour top
8080 // top left
8181 imagefilledrectangle ($ this ->image , $ x1 , $ y1 , ($ x1 + $ rectsize ), ($ y1 + $ rectsize ), $ light );
8282 // top right
8383 imagefilledrectangle ($ this ->image , ($ x2 - $ rectsize ), $ y1 , $ x2 , ($ y1 + $ rectsize ), $ light );
8484 }
8585
86- if ($ neighbours & (1 << 5 )){ // neighbour bottom
86+ if (( $ neighbours & (1 << 5 ) )){ // neighbour bottom
8787 // bottom left
8888 imagefilledrectangle ($ this ->image , $ x1 , ($ y2 - $ rectsize ), ($ x1 + $ rectsize ), $ y2 , $ light );
8989 // bottom right
0 commit comments