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>
|
||||||
|
|
||||||
<resource name="magicbag">
|
<resource name="magicbag">
|
||||||
<item big="yes" weight="100" score="6000"/>
|
<item notlost="yes" big="yes" weight="100" score="6000"/>
|
||||||
</resource>
|
</resource>
|
||||||
|
|
||||||
<resource name="magicherbbag" appearance="">
|
<resource name="magicherbbag" appearance="">
|
||||||
|
|
|
@ -408,12 +408,8 @@ void save_special_items(unit *usrc)
|
||||||
static int cache;
|
static int cache;
|
||||||
static const char *name = NULL;
|
static const char *name = NULL;
|
||||||
if (rc_changed(&cache)) {
|
if (rc_changed(&cache)) {
|
||||||
rc_ghost = rc_find("ghost");
|
rc_ghost = get_race(RC_TEMPLATE);
|
||||||
if (!rc_ghost) {
|
name = "ghost";
|
||||||
rc_ghost = get_race(RC_TEMPLATE);
|
|
||||||
name = "ghost";
|
|
||||||
}
|
|
||||||
assert(rc_ghost);
|
|
||||||
}
|
}
|
||||||
for (u = r->units; u; u = u->next) {
|
for (u = r->units; u; u = u->next) {
|
||||||
if (u->faction == fm) {
|
if (u->faction == fm) {
|
||||||
|
|
Loading…
Reference in a new issue