mirror of
https://github.com/diasurgical/devilution.git
synced 2026-05-21 05:40:54 +00:00
Replace magic number 352 with VIEWPORT_HEIGHT (#1232)
This commit is contained in:
+2
-2
@@ -2123,10 +2123,10 @@ void DrawLine(int x0, int y0, int x1, int y1, BYTE col)
|
||||
if (x1 < 0 + 64 || x1 >= 640 + 64) {
|
||||
gbNotInView = TRUE;
|
||||
}
|
||||
if (y0 < 0 + 160 || y0 >= 352 + 160) {
|
||||
if (y0 < 0 + 160 || y0 >= VIEWPORT_HEIGHT + 160) {
|
||||
gbNotInView = TRUE;
|
||||
}
|
||||
if (y1 < 0 + 160 || y1 >= 352 + 160) {
|
||||
if (y1 < 0 + 160 || y1 >= VIEWPORT_HEIGHT + 160) {
|
||||
gbNotInView = TRUE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user