(map, unit_map, draw_map, player_coms[]):

Modify nmap command to allow mapping around a nuke.
Add new command nbmap for bmapping around a nuke.
Add a new mapping flag 'n' for adding nukes to a map.
Correct syntax description for pmap, pbmap, lmap and lbmap
in player_coms[].
This commit is contained in:
Ron Koenderink 2006-06-24 17:29:40 +00:00
parent 5091956480
commit 26a014ea04
14 changed files with 217 additions and 66 deletions

View file

@ -62,9 +62,13 @@ map(void)
if (**player->argp != 'm') {
if (**player->argp == 'b')
bmap = 'b';
else if (**player->argp == 'n')
bmap = 'n';
else {
else if (**player->argp == 'n') {
unit_type = EF_NUKE;
if (player->argp[0][1] == 'b')
bmap = 'b';
else
bmap = 'n';
} else {
if (**player->argp == 'l')
unit_type = EF_LAND;
else if (**player->argp == 'p')
@ -111,6 +115,10 @@ map(void)
case 'P':
map_flags |= MAP_PLANE;
break;
case 'n':
case 'N':
map_flags |= MAP_NUKE;
break;
case 'h':
case 'H':
map_flags |= MAP_HIGH;