… | |
… | |
2005 | for (object *tmp = op->inv; tmp != NULL; tmp = tmp->below) |
2005 | for (object *tmp = op->inv; tmp != NULL; tmp = tmp->below) |
2006 | { |
2006 | { |
2007 | CLEAR_FLAG (tmp, flag); |
2007 | CLEAR_FLAG (tmp, flag); |
2008 | unflag_inv (tmp, flag); |
2008 | unflag_inv (tmp, flag); |
2009 | } |
2009 | } |
2010 | } |
|
|
2011 | |
|
|
2012 | /* |
|
|
2013 | * set_cheat(object) sets the cheat flag (WAS_WIZ) in the object and in |
|
|
2014 | * all it's inventory (recursively). |
|
|
2015 | * If checksums are used, a player will get set_cheat called for |
|
|
2016 | * him/her-self and all object carried by a call to this function. |
|
|
2017 | */ |
|
|
2018 | void |
|
|
2019 | set_cheat (object *op) |
|
|
2020 | { |
|
|
2021 | SET_FLAG (op, FLAG_WAS_WIZ); |
|
|
2022 | flag_inv (op, FLAG_WAS_WIZ); |
|
|
2023 | } |
2010 | } |
2024 | |
2011 | |
2025 | /* |
2012 | /* |
2026 | * find_free_spot(object, map, x, y, start, stop) will search for |
2013 | * find_free_spot(object, map, x, y, start, stop) will search for |
2027 | * a spot at the given map and coordinates which will be able to contain |
2014 | * a spot at the given map and coordinates which will be able to contain |