… | |
… | |
2002 | ob->flag [FLAG_NO_MAP_SAVE] = true; |
2002 | ob->flag [FLAG_NO_MAP_SAVE] = true; |
2003 | THIS->insert (ob, x, y, 0, INS_ABOVE_FLOOR_ONLY); |
2003 | THIS->insert (ob, x, y, 0, INS_ABOVE_FLOOR_ONLY); |
2004 | |
2004 | |
2005 | if (ob->randomitems) |
2005 | if (ob->randomitems) |
2006 | { |
2006 | { |
|
|
2007 | if (!ob->above) |
|
|
2008 | { |
2007 | ob->create_treasure (ob->randomitems); |
2009 | ob->create_treasure (ob->randomitems); |
|
|
2010 | |
|
|
2011 | for (object *op = ob->above; op; op = op->above) |
|
|
2012 | op->flag [FLAG_NO_MAP_SAVE] = true; |
|
|
2013 | } |
|
|
2014 | |
2008 | ob->randomitems = 0; |
2015 | ob->randomitems = 0; |
2009 | } |
2016 | } |
2010 | } |
2017 | } |
2011 | } |
2018 | } |
2012 | } |
2019 | } |