setsector setresource: Switch to edit_sect()
One copy of the code suffices. "Fertility content" becomes just "Fertility" in messages. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
f52a7e2739
commit
e109d981b8
5 changed files with 48 additions and 155 deletions
|
@ -54,8 +54,6 @@ static void print_plane(struct plnstr *);
|
|||
static void print_land(struct lndstr *);
|
||||
static void print_ship(struct shpstr *);
|
||||
static char *getin(char *, char **);
|
||||
static int edit_sect(struct sctstr *, char *, char *);
|
||||
static int edit_sect_i(struct sctstr *, char *, int);
|
||||
static int edit_nat(struct natstr *, char *, char *);
|
||||
static int edit_ship(struct shpstr *, char *, char *);
|
||||
static int edit_land(struct lndstr *, char *, char *);
|
||||
|
@ -415,7 +413,7 @@ warn_deprecated(char key)
|
|||
}
|
||||
#endif
|
||||
|
||||
static int
|
||||
int
|
||||
edit_sect_i(struct sctstr *sect, char *key, int arg)
|
||||
{
|
||||
int new;
|
||||
|
@ -573,7 +571,7 @@ edit_sect_i(struct sctstr *sect, char *key, int arg)
|
|||
return RET_OK;
|
||||
}
|
||||
|
||||
static int
|
||||
int
|
||||
edit_sect(struct sctstr *sect, char *key, char *p)
|
||||
{
|
||||
coord newx, newy;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue