- Fixed script engine allowing scripts to set a player's zeny to negative values.
- Fixed setting hide_woe_damage making even "miss" attacks seem to connect. - Cleaned up pc_getzeny to not require doubles. - When readjusting the fame-list, the last entry's id is also reset (may fix characters appearing more than once on it?) - Some sign/unsigned comparison warning fixes. - Some 'may be used unitialized' warning fixes. git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8273 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
@@ -2918,7 +2918,9 @@ int parse_frommap(int fd) {
|
||||
}
|
||||
// If the player's already in the list, remove the entry and shift the following ones 1 step up
|
||||
memmove(list+pos, list+pos+1, (size-pos-1) * sizeof(struct fame_list));
|
||||
list[size-1].fame = 0; // At worst, the guy'll end up last (shouldn't happen if fame only goes up)
|
||||
//Clear out last entry.
|
||||
list[size-1].id = 0;
|
||||
list[size-1].fame = 0;
|
||||
}
|
||||
|
||||
// Find the position where the player has to be inserted
|
||||
|
||||
@@ -708,7 +708,7 @@ int mapif_parse_PartyLeave(int fd, int party_id, int account_id, int char_id)
|
||||
return 0;
|
||||
}
|
||||
// When member goes to other map
|
||||
int mapif_parse_PartyChangeMap(int fd, int party_id, int account_id, int char_id, unsigned short map, int online, int lv)
|
||||
int mapif_parse_PartyChangeMap(int fd, int party_id, int account_id, int char_id, unsigned short map, int online, unsigned int lv)
|
||||
{
|
||||
struct party_data *p;
|
||||
int i;
|
||||
|
||||
Reference in New Issue
Block a user