- replaced all direct access to vertex coordinates with wrapper functions.

So that code replacement can be done piece by piece and not all at once.
This commit is contained in:
Christoph Oelckers 2016-03-29 10:07:06 +02:00
commit c7ae4688a3
26 changed files with 328 additions and 299 deletions

View file

@ -764,13 +764,12 @@ vertex_t *FindVertex (SDWORD x, SDWORD y)
for (i = 0; i < numvertexes; ++i)
{
if (vertexes[i].x == x && vertexes[i].y == y)
if (vertexes[i].fixX() == x && vertexes[i].fixY() == y)
{
return &vertexes[i];
}
}
vertexes[i].x = x;
vertexes[i].y = y;
vertexes[i].set(x, y);
numvertexes++;
return &vertexes[i];
}