Change set with nuke.h rev. 1.21 was incomplete (harmless because the
missing bits were consistent): (build_nuke): Assign 0 instead of space. (nuke): Update printing of group.
This commit is contained in:
parent
d5f8c32342
commit
2b57a13d94
2 changed files with 4 additions and 2 deletions
|
@ -693,7 +693,7 @@ build_nuke(struct sctstr *sp, struct nchrstr *np, short *vec, int tlev)
|
||||||
nuke.nuk_own = sp->sct_own;
|
nuke.nuk_own = sp->sct_own;
|
||||||
nuke.nuk_type = np - nchr;
|
nuke.nuk_type = np - nchr;
|
||||||
nuke.nuk_effic = 100;
|
nuke.nuk_effic = 100;
|
||||||
nuke.nuk_stockpile = ' ';
|
nuke.nuk_stockpile = 0;
|
||||||
nuke.nuk_ship = nuke.nuk_plane = nuke.nuk_land = -1;
|
nuke.nuk_ship = nuke.nuk_plane = nuke.nuk_land = -1;
|
||||||
nuke.nuk_uid = nstr.cur;
|
nuke.nuk_uid = nstr.cur;
|
||||||
nuke.nuk_tech = tlev;
|
nuke.nuk_tech = tlev;
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
*
|
*
|
||||||
* Known contributors to this file:
|
* Known contributors to this file:
|
||||||
* Dave Pare, 1986
|
* Dave Pare, 1986
|
||||||
|
* Markus Armbruster, 2006
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
@ -66,7 +67,8 @@ nuke(void)
|
||||||
pr("%-3d ", nuk.nuk_own);
|
pr("%-3d ", nuk.nuk_own);
|
||||||
pr("%4d %-19.19s ", nstr.cur, nchr[(int)nuk.nuk_type].n_name);
|
pr("%4d %-19.19s ", nstr.cur, nchr[(int)nuk.nuk_type].n_name);
|
||||||
prxy("%4d,%-4d", nuk.nuk_x, nuk.nuk_y, player->cnum);
|
prxy("%4d,%-4d", nuk.nuk_x, nuk.nuk_y, player->cnum);
|
||||||
pr(" %c %3d%% %4d", nuk.nuk_stockpile, nuk.nuk_effic, nuk.nuk_tech);
|
pr(" %1.1s %3d%% %4d",
|
||||||
|
&nuk.nuk_stockpile, nuk.nuk_effic, nuk.nuk_tech);
|
||||||
if (nuk.nuk_plane >= 0) {
|
if (nuk.nuk_plane >= 0) {
|
||||||
getplane(nuk.nuk_plane, &plane);
|
getplane(nuk.nuk_plane, &plane);
|
||||||
pr("%5dP %s",
|
pr("%5dP %s",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue