- if (!snxtitem(&nstr, EF_SHIP, player->argp[1]))
- return RET_SYN;
- oldmq = player->argp[2];
- if (oldmq)
- {
- good = sscanf(oldmq,"%d",&mobquota);
- if (!good)
- return RET_SYN;
- if (mobquota<0 || mobquota>ship_mob_max)
- {
- pr("Bad mobility quota value %d.\n",mobquota);
- return RET_SYN;
- }
- if (mobquota+(ship_mob_scale*(float)etu_per_update) > ship_mob_max)
- {
- pr("warning: %d less than optimal\n",mobquota);
- }
- }
- while (nxtitem(&nstr, (s_char *)&ship)) {
- if (!player->owner)
+ if (!snxtitem(&nstr, EF_SHIP, player->argp[1]))
+ return RET_SYN;
+ oldmq = player->argp[2];
+ if (oldmq) {
+ good = sscanf(oldmq, "%d", &mobquota);
+ if (!good)
+ return RET_SYN;
+ if (mobquota < 0 || mobquota > ship_mob_max) {
+ pr("Bad mobility quota value %d.\n", mobquota);
+ return RET_SYN;
+ }
+ if (mobquota + (ship_mob_scale * (float)etu_per_update) >
+ ship_mob_max) {
+ pr("warning: %d less than optimal\n", mobquota);
+ }
+ }
+ while (nxtitem(&nstr, (s_char *)&ship)) {
+ if (!player->owner)
+ continue;
+ if (!oldmq)
+ pr("Ship #%d at %s. Old value %d.\n", ship.shp_uid,
+ xyas(ship.shp_x, ship.shp_y, player->cnum),
+ ship.shp_mobquota);
+ cp = getstarg(player->argp[2], "mobility quota?", buf);
+ if (!cp)
+ return RET_SYN;
+ if (!check_ship_ok(&ship))