ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/gods.C
(Generate patch)

Comparing deliantra/server/server/gods.C (file contents):
Revision 1.50 by root, Fri Nov 6 12:27:06 2009 UTC vs.
Revision 1.51 by root, Fri Nov 6 13:03:34 2009 UTC

36#include <sproto.h> 36#include <sproto.h>
37 37
38/** 38/**
39 * Returns the id of specified god. 39 * Returns the id of specified god.
40 */ 40 */
41int 41static int
42lookup_god_by_name (shstr_cmp name) 42lookup_god_by_name (shstr_cmp name)
43{ 43{
44 if (name) 44 if (name)
45 for (godlink *gl = first_god; gl; gl = gl->next) 45 for (godlink *gl = first_god; gl; gl = gl->next)
46 if (gl->name == name) 46 if (gl->name == name)
282} 282}
283 283
284/** 284/**
285 * Unapplies up to number worth of items of type 285 * Unapplies up to number worth of items of type
286 */ 286 */
287void 287static void
288stop_using_item (object *op, int type, int number) 288stop_using_item (object *op, int type, int number)
289{ 289{
290 object *tmp; 290 object *tmp;
291 291
292 for (tmp = op->inv; tmp && number; tmp = tmp->below) 292 for (tmp = op->inv; tmp && number; tmp = tmp->below)
1066 1066
1067/** 1067/**
1068 * Returns priest's god's id. 1068 * Returns priest's god's id.
1069 * Straight calls lookup_god_by_name 1069 * Straight calls lookup_god_by_name
1070 */ 1070 */
1071int 1071static int
1072get_god (object *priest) 1072get_god (object *priest)
1073{ 1073{
1074 return lookup_god_by_name (determine_god (priest)); 1074 return lookup_god_by_name (determine_god (priest));
1075} 1075}
1076 1076

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines