display: Fix display type 340 bug.
In the vector function, the flags variable wasn't initialized. The function can sometimes return boolean true even if it shouldn't.
This commit is contained in:
parent
a3c40cd290
commit
d7f1942998
1 changed files with 1 additions and 1 deletions
|
@ -453,7 +453,7 @@ vector(int i, int sy, int dy, int sx, int dx)
|
||||||
{
|
{
|
||||||
struct type340 *u = UNIT(0);
|
struct type340 *u = UNIT(0);
|
||||||
int x0, y0, x1, y1;
|
int x0, y0, x1, y1;
|
||||||
int flags;
|
int flags = 0;
|
||||||
|
|
||||||
DEBUGF(("v i%d y%c%d x%c%d\r\n", i,
|
DEBUGF(("v i%d y%c%d x%c%d\r\n", i,
|
||||||
(sy ? '-' : '+'), dy,
|
(sy ? '-' : '+'), dy,
|
||||||
|
|
Loading…
Add table
Reference in a new issue