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.37 by root, Sat Sep 6 06:40:19 2008 UTC vs.
Revision 1.38 by root, Thu Sep 25 04:09:57 2008 UTC

481 if (skop->type == SKILL && skop->subtype == SK_PRAYING) 481 if (skop->type == SKILL && skop->subtype == SK_PRAYING)
482 break; 482 break;
483 483
484 /* Player has no skill - give them the skill */ 484 /* Player has no skill - give them the skill */
485 if (!skop) 485 if (!skop)
486 {
487 /* The archetype should always be defined - if we crash here because it doesn't, 486 /* The archetype should always be defined - if we crash here because it doesn't,
488 * things are really messed up anyways. 487 * things are really messed up anyways.
489 */ 488 */
490 skop = give_skill_by_name (op, get_archetype_by_type_subtype (SKILL, SK_PRAYING)->skill); 489 skop = give_skill_by_name (op, get_archetype_by_type_subtype (SKILL, SK_PRAYING)->skill);
491 link_player_skills (op);
492 }
493 490
494 sk_applied = QUERY_FLAG (skop, FLAG_APPLIED); /* save skill status */ 491 sk_applied = QUERY_FLAG (skop, FLAG_APPLIED); /* save skill status */
495 492
496 /* Clear the "undead" status. We also need to force a call to change_abil, 493 /* Clear the "undead" status. We also need to force a call to change_abil,
497 * so I set undeadified for that. 494 * so I set undeadified for that.
498 * - gros, 21th July 2006. 495 * - gros, 21th July 2006.
499 */ 496 */
500 if ((old_god) && (QUERY_FLAG (old_god, FLAG_UNDEAD))) 497 if (old_god && QUERY_FLAG (old_god, FLAG_UNDEAD))
501 { 498 {
502 CLEAR_FLAG (skop, FLAG_UNDEAD); 499 CLEAR_FLAG (skop, FLAG_UNDEAD);
503 undeadified = 1; 500 undeadified = 1;
504 } 501 }
505 502

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines