mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 20:21:26 +00:00
- prevent Visual C++ from making stupid code.
This commit is contained in:
parent
eafd2519b4
commit
d46e109a5b
1 changed files with 5 additions and 2 deletions
|
@ -56,8 +56,11 @@ struct FDisplacementTable
|
|||
|
||||
fixedvec2 getOffset(int x, int y) const
|
||||
{
|
||||
static const fixedvec2 nulvec = { 0,0 };
|
||||
if (x == y) return nulvec; // shortcut for the most common case
|
||||
if (x == y)
|
||||
{
|
||||
fixedvec2 nulvec = { 0,0 };
|
||||
return nulvec; // shortcut for the most common case
|
||||
}
|
||||
return data[x + size*y].pos;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue