summaryrefslogtreecommitdiff
path: root/src/char_sql
diff options
context:
space:
mode:
Diffstat (limited to 'src/char_sql')
-rw-r--r--src/char_sql/char.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c
index c6a8e606e..4db97be38 100644
--- a/src/char_sql/char.c
+++ b/src/char_sql/char.c
@@ -2399,6 +2399,16 @@ int char_send_fame_list(int fd) {
return 0;
}
+void char_update_fame_list(int type, int index, int fame)
+{
+ char buf[9];
+ WBUFW(buf,0) = 0x2b22;
+ WBUFB(buf,2) = type;
+ WBUFB(buf,3) = index;
+ WBUFL(buf,4) = fame;
+ mapif_sendall(buf, 8);
+}
+
int search_mapserver(unsigned short map, long ip, short port);
//Loads a character's name and stores it in the buffer given (must be NAME_LENGTH in size)
@@ -2964,7 +2974,7 @@ int parse_frommap(int fd) {
(pos == size-1 || fame > list[pos+1].fame)
) { //No change in order.
list[(int)pos].fame = fame;
- char_send_fame_list(fd);
+ char_update_fame_list(type, pos, fame);
break;
}
// If the player's already in the list, remove the entry and shift the following ones 1 step up