url_fromid[i] = e;
// make sure this slot won't be reused quickly even on map change
- cvar_set("_urllib_nextslot", ftos(mod(i + 1, NUM_URL_ID)));
+ cvar_set("_urllib_nextslot", ftos((i + 1) % NUM_URL_ID));
break;
}
}
url_fromid[i] = e;
// make sure this slot won't be reused quickly even on map change
- cvar_set("_urllib_nextslot", ftos(mod(i + 1, NUM_URL_ID)));
+ cvar_set("_urllib_nextslot", ftos((i + 1) % NUM_URL_ID));
}
else
{