1 | /* |
1 | /* |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
3 | * |
3 | * |
4 | * Copyright (©) 2005,2006,2007,2008,2009,2010,2011,2012 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
4 | * Copyright (©) 2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * Copyright (©) 2001-2003 Mark Wedel & Crossfire Development Team |
5 | * Copyright (©) 2001-2003 Mark Wedel & Crossfire Development Team |
6 | * Copyright (©) 1992 Frank Tore Johansen |
6 | * Copyright (©) 1992 Frank Tore Johansen |
7 | * |
7 | * |
8 | * Deliantra is free software: you can redistribute it and/or modify it under |
8 | * Deliantra is free software: you can redistribute it and/or modify it under |
9 | * the terms of the Affero GNU General Public License as published by the |
9 | * the terms of the Affero GNU General Public License as published by the |
… | |
… | |
74 | refcnt_dec (); |
74 | refcnt_dec (); |
75 | } |
75 | } |
76 | |
76 | |
77 | //+GPL |
77 | //+GPL |
78 | |
78 | |
79 | /* |
79 | /* |
80 | * returns 1 if the player is in the region reg, or a child region thereof |
80 | * returns 1 if the player is in the region reg, or a child region thereof |
81 | * otherwise returns 0 |
81 | * otherwise returns 0 |
82 | * if passed a NULL region returns -1 |
82 | * if passed a NULL region returns -1 |
83 | */ |
83 | */ |
84 | static int |
84 | static int |
… | |
… | |
98 | |
98 | |
99 | return 0; |
99 | return 0; |
100 | } |
100 | } |
101 | |
101 | |
102 | /** Returns an object which is an exit through which the player represented by op should be |
102 | /** Returns an object which is an exit through which the player represented by op should be |
103 | * sent in order to be imprisoned. If there is no suitable place to which an exit can be |
103 | * sent in order to be imprisoned. If there is no suitable place to which an exit can be |
104 | * constructed, then NULL will be returned. The caller is responsible for freeing the object |
104 | * constructed, then NULL will be returned. The caller is responsible for freeing the object |
105 | * created by this function. |
105 | * created by this function. |
106 | */ |
106 | */ |
107 | object * |
107 | object * |
108 | get_jail_exit (object *op) |
108 | get_jail_exit (object *op) |