(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:
parent
5091956480
commit
26a014ea04
14 changed files with 217 additions and 66 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue