mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
Added two patches from crossfire mailinglist.
1) get experience points if you use skills 2) don't crash if player logs in with 2 skills enabled 3) cleaned up PLIST (removed 2 player characters of mine which aren't part of the distribution)
This commit is contained in:
parent
f4bbcde9f5
commit
fed9e4cbb8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=4278
31
games/crossfire-client/files/patch-ak
Normal file
31
games/crossfire-client/files/patch-ak
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
Date: Sun, 3 Nov 96 08:03:51 EST
|
||||||
|
From: "Brian Thomas" <thomas@astro.psu.edu>
|
||||||
|
Message-Id: <9611031303.AA04680@zaphod.astro.psu.edu>
|
||||||
|
Subject: CF: skill status upon login
|
||||||
|
|
||||||
|
It is possible right now for a player to log
|
||||||
|
back into a game and have 2 skills readied
|
||||||
|
(applied!). This can confuse the code, and
|
||||||
|
cause problems for a while. This patch
|
||||||
|
fixes that.
|
||||||
|
|
||||||
|
-b.t.
|
||||||
|
|
||||||
|
*** server/skill_util.c.orig Tue Oct 29 05:57:46 1996
|
||||||
|
--- server/skill_util.c Sun Nov 3 07:57:20 1996
|
||||||
|
***************
|
||||||
|
*** 877,886 ****
|
||||||
|
--- 880,891 ----
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/* Ok, create linked list and link the associated skills to exp objects */
|
||||||
|
for(i=0;i<sk_index;i++) {
|
||||||
|
+ /* for startup, lets unapply all skills */
|
||||||
|
+ if(QUERY_FLAG(sk_ob[i],FLAG_APPLIED)) CLEAR_FLAG(sk_ob[i],FLAG_APPLIED);
|
||||||
|
#ifdef LINKED_SKILL_LIST
|
||||||
|
objectlink *obl;
|
||||||
|
obl = (objectlink *) malloc(sizeof(objectlink));
|
||||||
|
obl->ob=sk_ob[i];
|
||||||
|
obl->id=sk_ob[i]->stats.sp;
|
||||||
|
|
@ -1494,8 +1494,6 @@ crossfire/lib/maps/world/world_e1
|
|||||||
crossfire/lib/maps/world/world_e2
|
crossfire/lib/maps/world/world_e2
|
||||||
crossfire/lib/messages
|
crossfire/lib/messages
|
||||||
crossfire/lib/motd
|
crossfire/lib/motd
|
||||||
crossfire/lib/players/andreas.pl
|
|
||||||
crossfire/lib/players/crusher.pl
|
|
||||||
crossfire/lib/races
|
crossfire/lib/races
|
||||||
crossfire/lib/skill_params
|
crossfire/lib/skill_params
|
||||||
crossfire/lib/sounds
|
crossfire/lib/sounds
|
||||||
|
31
games/crossfire-server/files/patch-ak
Normal file
31
games/crossfire-server/files/patch-ak
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
Date: Sun, 3 Nov 96 08:03:51 EST
|
||||||
|
From: "Brian Thomas" <thomas@astro.psu.edu>
|
||||||
|
Message-Id: <9611031303.AA04680@zaphod.astro.psu.edu>
|
||||||
|
Subject: CF: skill status upon login
|
||||||
|
|
||||||
|
It is possible right now for a player to log
|
||||||
|
back into a game and have 2 skills readied
|
||||||
|
(applied!). This can confuse the code, and
|
||||||
|
cause problems for a while. This patch
|
||||||
|
fixes that.
|
||||||
|
|
||||||
|
-b.t.
|
||||||
|
|
||||||
|
*** server/skill_util.c.orig Tue Oct 29 05:57:46 1996
|
||||||
|
--- server/skill_util.c Sun Nov 3 07:57:20 1996
|
||||||
|
***************
|
||||||
|
*** 877,886 ****
|
||||||
|
--- 880,891 ----
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/* Ok, create linked list and link the associated skills to exp objects */
|
||||||
|
for(i=0;i<sk_index;i++) {
|
||||||
|
+ /* for startup, lets unapply all skills */
|
||||||
|
+ if(QUERY_FLAG(sk_ob[i],FLAG_APPLIED)) CLEAR_FLAG(sk_ob[i],FLAG_APPLIED);
|
||||||
|
#ifdef LINKED_SKILL_LIST
|
||||||
|
objectlink *obl;
|
||||||
|
obl = (objectlink *) malloc(sizeof(objectlink));
|
||||||
|
obl->ob=sk_ob[i];
|
||||||
|
obl->id=sk_ob[i]->stats.sp;
|
||||||
|
|
@ -1494,8 +1494,6 @@ crossfire/lib/maps/world/world_e1
|
|||||||
crossfire/lib/maps/world/world_e2
|
crossfire/lib/maps/world/world_e2
|
||||||
crossfire/lib/messages
|
crossfire/lib/messages
|
||||||
crossfire/lib/motd
|
crossfire/lib/motd
|
||||||
crossfire/lib/players/andreas.pl
|
|
||||||
crossfire/lib/players/crusher.pl
|
|
||||||
crossfire/lib/races
|
crossfire/lib/races
|
||||||
crossfire/lib/skill_params
|
crossfire/lib/skill_params
|
||||||
crossfire/lib/sounds
|
crossfire/lib/sounds
|
||||||
|
31
games/crossfire/files/patch-ak
Normal file
31
games/crossfire/files/patch-ak
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
Date: Sun, 3 Nov 96 08:03:51 EST
|
||||||
|
From: "Brian Thomas" <thomas@astro.psu.edu>
|
||||||
|
Message-Id: <9611031303.AA04680@zaphod.astro.psu.edu>
|
||||||
|
Subject: CF: skill status upon login
|
||||||
|
|
||||||
|
It is possible right now for a player to log
|
||||||
|
back into a game and have 2 skills readied
|
||||||
|
(applied!). This can confuse the code, and
|
||||||
|
cause problems for a while. This patch
|
||||||
|
fixes that.
|
||||||
|
|
||||||
|
-b.t.
|
||||||
|
|
||||||
|
*** server/skill_util.c.orig Tue Oct 29 05:57:46 1996
|
||||||
|
--- server/skill_util.c Sun Nov 3 07:57:20 1996
|
||||||
|
***************
|
||||||
|
*** 877,886 ****
|
||||||
|
--- 880,891 ----
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/* Ok, create linked list and link the associated skills to exp objects */
|
||||||
|
for(i=0;i<sk_index;i++) {
|
||||||
|
+ /* for startup, lets unapply all skills */
|
||||||
|
+ if(QUERY_FLAG(sk_ob[i],FLAG_APPLIED)) CLEAR_FLAG(sk_ob[i],FLAG_APPLIED);
|
||||||
|
#ifdef LINKED_SKILL_LIST
|
||||||
|
objectlink *obl;
|
||||||
|
obl = (objectlink *) malloc(sizeof(objectlink));
|
||||||
|
obl->ob=sk_ob[i];
|
||||||
|
obl->id=sk_ob[i]->stats.sp;
|
||||||
|
|
@ -1494,8 +1494,6 @@ crossfire/lib/maps/world/world_e1
|
|||||||
crossfire/lib/maps/world/world_e2
|
crossfire/lib/maps/world/world_e2
|
||||||
crossfire/lib/messages
|
crossfire/lib/messages
|
||||||
crossfire/lib/motd
|
crossfire/lib/motd
|
||||||
crossfire/lib/players/andreas.pl
|
|
||||||
crossfire/lib/players/crusher.pl
|
|
||||||
crossfire/lib/races
|
crossfire/lib/races
|
||||||
crossfire/lib/skill_params
|
crossfire/lib/skill_params
|
||||||
crossfire/lib/sounds
|
crossfire/lib/sounds
|
||||||
|
Loading…
Reference in New Issue
Block a user