(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 check_trade(void);
|
||||||
extern int ontradingblock(int, void *);
|
extern int ontradingblock(int, void *);
|
||||||
extern void trdswitchown(int, void *, int);
|
extern void trdswitchown(int, void *, int);
|
||||||
|
extern int do_look(short);
|
||||||
extern int radar(short);
|
extern int radar(short);
|
||||||
extern void update_power(void);
|
extern void update_power(void);
|
||||||
/* Commands */
|
/* Commands */
|
||||||
|
|
|
@ -39,7 +39,6 @@
|
||||||
#include "optlist.h"
|
#include "optlist.h"
|
||||||
#include "path.h"
|
#include "path.h"
|
||||||
|
|
||||||
static int do_look(short type);
|
|
||||||
static void look_ship(struct shpstr *lookship);
|
static void look_ship(struct shpstr *lookship);
|
||||||
static void look_land(struct lndstr *lookland);
|
static void look_land(struct lndstr *lookland);
|
||||||
|
|
||||||
|
@ -55,7 +54,7 @@ llook(void)
|
||||||
return do_look(EF_LAND);
|
return do_look(EF_LAND);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
int
|
||||||
do_look(short type)
|
do_look(short type)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
|
@ -248,10 +248,7 @@ do_unit_move(struct emp_qelem *unit_list, int *together,
|
||||||
player->btused++;
|
player->btused++;
|
||||||
continue;
|
continue;
|
||||||
case 'l':
|
case 'l':
|
||||||
if (type == EF_SHIP)
|
do_look(type);
|
||||||
look();
|
|
||||||
else
|
|
||||||
llook();
|
|
||||||
player->btused++;
|
player->btused++;
|
||||||
continue;
|
continue;
|
||||||
case 's':
|
case 's':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue