(do_look): Make public.
(do_unit_move): Switch look() and llook() to use do_look() instead.
This commit is contained in:
parent
b0a9e3579f
commit
e8f74e0f7e
3 changed files with 3 additions and 6 deletions
|
@ -75,6 +75,7 @@ extern char *prsub(struct shpstr *);
|
|||
extern int check_trade(void);
|
||||
extern int ontradingblock(int, void *);
|
||||
extern void trdswitchown(int, void *, int);
|
||||
extern int do_look(short);
|
||||
extern int radar(short);
|
||||
extern void update_power(void);
|
||||
/* Commands */
|
||||
|
|
|
@ -39,7 +39,6 @@
|
|||
#include "optlist.h"
|
||||
#include "path.h"
|
||||
|
||||
static int do_look(short type);
|
||||
static void look_ship(struct shpstr *lookship);
|
||||
static void look_land(struct lndstr *lookland);
|
||||
|
||||
|
@ -55,7 +54,7 @@ llook(void)
|
|||
return do_look(EF_LAND);
|
||||
}
|
||||
|
||||
static int
|
||||
int
|
||||
do_look(short type)
|
||||
{
|
||||
int i;
|
||||
|
|
|
@ -248,10 +248,7 @@ do_unit_move(struct emp_qelem *unit_list, int *together,
|
|||
player->btused++;
|
||||
continue;
|
||||
case 'l':
|
||||
if (type == EF_SHIP)
|
||||
look();
|
||||
else
|
||||
llook();
|
||||
do_look(type);
|
||||
player->btused++;
|
||||
continue;
|
||||
case 's':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue