- for (i = pos-1; i <= RANKINGS_CNT-1; ++i) {
- if (i == 0) {
- db_put(ServerProgsDB, strcat(GetMapname(), rr, "time"), ftos(grecordtime[1]));
- db_put(ServerProgsDB, strcat(GetMapname(), rr, "crypto_idfp"), grecorduid[1]);
- grecordtime[0] = grecordtime[1];
- if (grecordholder[i])
- strunzone(grecordholder[0]);
- grecordholder[0] = strzone(grecordholder[1]);
-
- if (grecorduid[i])
- strunzone(grecorduid[0]);
- grecorduid[0] = strzone(grecorduid[1]);
- }
- else if (i == RANKINGS_CNT-1) {
- db_put(ServerProgsDB, strcat(GetMapname(), rr, "time", ftos(i)), string_null);
- db_put(ServerProgsDB, strcat(GetMapname(), rr, "crypto_idfp", ftos(i)), string_null);
- grecordtime[i] = 0;
- if (grecordholder[i])
- strunzone(grecordholder[i]);
- grecordholder[i] = string_null;
-
- if (grecorduid[i])
- strunzone(grecorduid[i]);
- grecorduid[i] = string_null;
+ float i;
+ for (i = pos; i <= RANKINGS_CNT; ++i) {
+ if (i == RANKINGS_CNT) {
+ db_put(ServerProgsDB, strcat(map, rr, "time", ftos(i)), string_null);
+ db_put(ServerProgsDB, strcat(map, rr, "crypto_idfp", ftos(i)), string_null);