Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Quick Polymorph patch.
- To: crossfire (at) ifi.uio.no
- Subject: Quick Polymorph patch.
- From: Mark Wedel <>
- Date: Sun, 4 Sep 1994 17:42:27 -0700
Apply this to the common/treasure.c file. It should prevent the core
dumps that polymorph causes:
*** 667,672 ****
--- 653,659 ----
void fix_generated_item(object *op,int difficulty, int max_magic) {
int was_magic = op->magic;
+ if (difficulty<1) difficulty=1;
if (op->arch == crown_arch) {
set_magic(difficulty>25?30:difficulty+5, op, max_magic);
generate_artifact(op,difficulty);
***************
Mark Wedel