Change empfile members postread() and prewrite() to return void
Callers ignore the value, and callees always return 1. Pointless.
This commit is contained in:
parent
e438f6b4cd
commit
bf436a4498
8 changed files with 35 additions and 38 deletions
|
@ -50,7 +50,7 @@
|
|||
|
||||
static int checksect(struct sctstr *);
|
||||
|
||||
int
|
||||
void
|
||||
sct_postread(int id, void *ptr)
|
||||
{
|
||||
struct sctstr *sp = ptr;
|
||||
|
@ -59,10 +59,9 @@ sct_postread(int id, void *ptr)
|
|||
player->owner = (player->god || sp->sct_own == player->cnum);
|
||||
if (opt_MOB_ACCESS)
|
||||
sct_do_upd_mob(sp);
|
||||
return 1;
|
||||
}
|
||||
|
||||
int
|
||||
void
|
||||
sct_prewrite(int id, void *ptr)
|
||||
{
|
||||
struct sctstr *sp = ptr;
|
||||
|
@ -71,7 +70,6 @@ sct_prewrite(int id, void *ptr)
|
|||
bridge_damaged(sp);
|
||||
checksect(sp);
|
||||
getsect(sp->sct_x, sp->sct_y, §);
|
||||
return 1;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue