forked from github/server
bug 2400: magicbag preservation
This commit is contained in:
parent
0686e6ceba
commit
0440fcc11c
2 changed files with 3 additions and 7 deletions
|
@ -46,7 +46,7 @@
|
|||
</resource>
|
||||
|
||||
<resource name="magicbag">
|
||||
<item big="yes" weight="100" score="6000"/>
|
||||
<item notlost="yes" big="yes" weight="100" score="6000"/>
|
||||
</resource>
|
||||
|
||||
<resource name="magicherbbag" appearance="">
|
||||
|
|
|
@ -408,13 +408,9 @@ void save_special_items(unit *usrc)
|
|||
static int cache;
|
||||
static const char *name = NULL;
|
||||
if (rc_changed(&cache)) {
|
||||
rc_ghost = rc_find("ghost");
|
||||
if (!rc_ghost) {
|
||||
rc_ghost = get_race(RC_TEMPLATE);
|
||||
name = "ghost";
|
||||
}
|
||||
assert(rc_ghost);
|
||||
}
|
||||
for (u = r->units; u; u = u->next) {
|
||||
if (u->faction == fm) {
|
||||
give_special_items(u, &usrc->items);
|
||||
|
|
Loading…
Reference in a new issue