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

Comparing deliantra/server/common/holy.C (file contents):
Revision 1.13 by root, Sun Jul 1 05:00:17 2007 UTC vs.
Revision 1.17 by root, Wed Dec 31 17:35:37 2008 UTC

1/* 1/*
2 * This file is part of Crossfire TRT, the Roguelike Realtime MORPG. 2 * This file is part of Deliantra, the Roguelike Realtime MMORPG.
3 * 3 *
4 * Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Crossfire TRT team 4 * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5 * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team 5 * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team
6 * Copyright (©) 1992,2007 Frank Tore Johansen 6 * Copyright (©) 1992,2007 Frank Tore Johansen
7 * 7 *
8 * Crossfire TRT is free software: you can redistribute it and/or modify 8 * Deliantra is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by 9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or 10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version. 11 * (at your option) any later version.
12 * 12 *
13 * This program is distributed in the hope that it will be useful, 13 * This program is distributed in the hope that it will be useful,
16 * GNU General Public License for more details. 16 * GNU General Public License for more details.
17 * 17 *
18 * You should have received a copy of the GNU General Public License 18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>. 19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 * 20 *
21 * The authors can be reached via e-mail to <crossfire@schmorp.de> 21 * The authors can be reached via e-mail to <support@deliantra.net>
22 */ 22 */
23 23
24/* Started file Sept 1996 - initialization of gods in form of a 24/* Started file Sept 1996 - initialization of gods in form of a
25 * linked list -b.t. 25 * linked list -b.t.
26 */ 26 */
63 // next=NULL; /* next god in this linked list */ 63 // next=NULL; /* next god in this linked list */
64 64
65 god->arch = god_arch; 65 god->arch = god_arch;
66 god->name = god_arch->object::name; 66 god->name = god_arch->object::name;
67 67
68 // first_god->id MUST be the highest god number for other code to work currently
68 if (!first_god) 69 if (!first_god)
69 god->id = 1; 70 god->id = 1;
70 else 71 else
71 { 72 {
72 god->id = first_god->id + 1; 73 god->id = first_god->id + 1;
81} 82}
82 83
83/* baptize_altar() - (cosmetically) change the name to that of the 84/* baptize_altar() - (cosmetically) change the name to that of the
84 * god in question, then set the title for later use. -b.t. 85 * god in question, then set the title for later use. -b.t.
85 */ 86 */
86
87int 87int
88baptize_altar (object *op) 88baptize_altar (object *op)
89{ 89{
90 char buf[MAX_BUF]; 90 char buf[MAX_BUF];
91 91
99 { 99 {
100 LOG (llevError, "baptise_altar(): bizarre nameless god!\n"); 100 LOG (llevError, "baptise_altar(): bizarre nameless god!\n");
101 return 0; 101 return 0;
102 } 102 }
103 /* if the object name hasnt' been changed, we tack on the gods name */ 103 /* if the object name hasnt' been changed, we tack on the gods name */
104 if (!strcmp (op->name, op->arch->object::name)) 104 if (op->name == op->arch->object::name)
105 { 105 {
106 sprintf (buf, "%s of %s", &op->name, &god->name); 106 sprintf (buf, "%s of %s", &op->name, &god->name);
107 op->name = buf; 107 op->name = buf;
108 } 108 }
109 op->title = god->name; 109 op->title = god->name;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines