/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2000, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2004, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure
*
* This program is free software; you can redistribute it and/or modify
if ((ip = whatitem(player->argp[1], "What item? ")) == 0)
return RET_SYN;
- i_del = V_DEL(ip - ichr);
+ i_del = ip->i_vtype;;
if (player->argp[2] == (s_char *)0) {
if ((str = getstring("(sects)? ", buf1)) == 0)
return RET_SYN;
if (!player->owner)
continue;
p = &map[ns.dy][ns.dx * 2];
- if ((dir = getvar(i_del, (s_char *)§, EF_SECTOR) & 0x7) &&
- nstr_exec(cond, ncond, (s_char *)§, EF_SECTOR))
+ if ((dir = sect.sct_del[i_del] & 0x7) &&
+ nstr_exec(cond, ncond, §))
memcpy(p, routech[dir][0], 3);
p[1] = dchr[sect.sct_type].d_mnem;
}