(move_ground): Remove superflous parameter `mobility'. Callers
changed. Edit for clarity. No functional changes.
This commit is contained in:
parent
4fa84b5cb1
commit
cc5d78c2f0
5 changed files with 27 additions and 36 deletions
|
@ -155,7 +155,7 @@ explore(void)
|
|||
*/
|
||||
dam = 1;
|
||||
mcost = move_ground((s_char *)ip, §, &endsect,
|
||||
(double)sect.sct_mobil, weight, player->argp[4],
|
||||
weight, player->argp[4],
|
||||
explore_map, 1, &dam);
|
||||
|
||||
if (dam) {
|
||||
|
@ -207,7 +207,7 @@ explore(void)
|
|||
if (!player->god && chksect.sct_own && chksect.sct_own != player->cnum
|
||||
&& chksect.sct_type != SCT_SANCT) {
|
||||
pr("Somebody beat you there!\n");
|
||||
/* Send them xback home */
|
||||
/* Send them back home */
|
||||
getsect(start.sct_x, start.sct_y, §);
|
||||
if (sect.sct_own != own) {
|
||||
pr("Someone captured the sector you started from!\n");
|
||||
|
|
|
@ -201,7 +201,7 @@ move(void)
|
|||
if (dam && !chance(weight / 200.0))
|
||||
dam = 0;
|
||||
mcost = move_ground((s_char *)ip, §, &endsect,
|
||||
(double)sect.sct_mobil, weight, player->argp[4],
|
||||
weight, player->argp[4],
|
||||
cmd_move_map, 0, &dam);
|
||||
|
||||
if (dam) {
|
||||
|
|
|
@ -176,7 +176,6 @@ tran_nuke(void)
|
|||
}
|
||||
dam = 0;
|
||||
mcost = move_ground((s_char *)&nuke, §, &endsect,
|
||||
(double)sect.sct_mobil,
|
||||
(double)ncp->n_weight * moving,
|
||||
player->argp[5], tran_map, 0, &dam);
|
||||
|
||||
|
@ -293,7 +292,7 @@ tran_plane(void)
|
|||
}
|
||||
dam = 1;
|
||||
mcost = move_ground((s_char *)&plane, §, &endsect,
|
||||
(double)sect.sct_mobil, (double)weight,
|
||||
(double)weight,
|
||||
player->argp[3], tran_map, 0, &dam);
|
||||
dam /= count;
|
||||
if (mcost < 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue