@@ -62,28 +62,28 @@ protected function module(int $x, int $y, int $M_TYPE):void{
62
62
// Outer rounding
63
63
// ------------------
64
64
65
- if ($ neighbours & (1 << 7 )){ // neighbour left
65
+ if (( $ neighbours & (1 << 7 ) )){ // neighbour left
66
66
// top left
67
67
imagefilledrectangle ($ this ->image , $ x1 , $ y1 , ($ x1 + $ rectsize ), ($ y1 + $ rectsize ), $ light );
68
68
// bottom left
69
69
imagefilledrectangle ($ this ->image , $ x1 , ($ y2 - $ rectsize ), ($ x1 + $ rectsize ), $ y2 , $ light );
70
70
}
71
71
72
- if ($ neighbours & (1 << 3 )){ // neighbour right
72
+ if (( $ neighbours & (1 << 3 ) )){ // neighbour right
73
73
// top right
74
74
imagefilledrectangle ($ this ->image , ($ x2 - $ rectsize ), $ y1 , $ x2 , ($ y1 + $ rectsize ), $ light );
75
75
// bottom right
76
76
imagefilledrectangle ($ this ->image , ($ x2 - $ rectsize ), ($ y2 - $ rectsize ), $ x2 , $ y2 , $ light );
77
77
}
78
78
79
- if ($ neighbours & (1 << 1 )){ // neighbour top
79
+ if (( $ neighbours & (1 << 1 ) )){ // neighbour top
80
80
// top left
81
81
imagefilledrectangle ($ this ->image , $ x1 , $ y1 , ($ x1 + $ rectsize ), ($ y1 + $ rectsize ), $ light );
82
82
// top right
83
83
imagefilledrectangle ($ this ->image , ($ x2 - $ rectsize ), $ y1 , $ x2 , ($ y1 + $ rectsize ), $ light );
84
84
}
85
85
86
- if ($ neighbours & (1 << 5 )){ // neighbour bottom
86
+ if (( $ neighbours & (1 << 5 ) )){ // neighbour bottom
87
87
// bottom left
88
88
imagefilledrectangle ($ this ->image , $ x1 , ($ y2 - $ rectsize ), ($ x1 + $ rectsize ), $ y2 , $ light );
89
89
// bottom right
0 commit comments