- Fixed the nocast flag 2 (not usable in pvp) returning true in pk-mode servers.

- When removing a castle's owning guild, the char servers will erase the guardian data now.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6602 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
skotlex
2006-05-15 18:35:18 +00:00
parent 664e4c071e
commit b2b800212c
4 changed files with 18 additions and 4 deletions

View File

@@ -1752,6 +1752,10 @@ int mapif_parse_GuildCastleDataSave(int fd,int castle_id,int index,int value)
(g)?g->name:"??" ,gid, (value)?"occupy":"abandon", castle_id);
}
gc.guild_id = value;
if(gc.guild_id == 0) {
//Delete guardians.
memset(&gc.guardian, 0, sizeof(gc.guardian));
}
break;
case 2: gc.economy = value; break;
case 3: gc.defense = value; break;