git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10696
d7cf8633-e32d-0410-b094-
e92efae38249
if (!maps[m])
continue;
// "round up" to the bigger size if two equally-valued matches exist
if (!maps[m])
continue;
// "round up" to the bigger size if two equally-valued matches exist
- nval = 0.5 * (abs(maps[m]->size - fsize_x) + abs(maps[m]->size - fsize_y));
+ nval = 0.5 * (fabs(maps[m]->size - fsize_x) + fabs(maps[m]->size - fsize_y));
if (match == -1 || nval < value || (nval == value && matchsize < maps[m]->size))
{
value = nval;
if (match == -1 || nval < value || (nval == value && matchsize < maps[m]->size))
{
value = nval;