viewing paste Unknown #5808 | Diff

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
Index: src/map/clif.c
===================================================================
--- src/map/clif.c  (revision 17312)
+++ src/map/clif.c  (working copy)
@@ -3282,15 +3282,16 @@
 ///     2 = failure due to low level
 void clif_equipitemack(struct map_session_data *sd,int n,int pos,int ok)
 {
-   int fd,header,offs=0;
+   int fd,header,offs=0,succes;
 #if PACKETVER < 20110824
    header = 0xaa;
+   succes = (ok==1);
 #elif PACKETVER < 20120925
    header = 0x8d0;
-   ok = ok ? 0:1;
+   succes = ok ? 0:1;
 #else
    header = 0x999;
-   ok = ok ? 0:1;
+   succes = ok ? 0:1;
 #endif
    nullpo_retv(sd);
 
@@ -3305,13 +3306,13 @@
    WFIFOW(fd,offs+4)=(int)pos;
 #endif
 #if PACKETVER < 20100629
-   WFIFOB(fd,offs+6)=ok;
+   WFIFOB(fd,offs+6)=succes;
 #else
    if (ok && sd->inventory_data[n]->equip&EQP_VISIBLE)
        WFIFOW(fd,offs+6)=sd->inventory_data[n]->look;
    else
        WFIFOW(fd,offs+6)=0;
-   WFIFOB(fd,offs+8)=ok;
+   WFIFOB(fd,offs+8)=succes;
 #endif
    WFIFOSET(fd,packet_len(header));
 }
Index: src/char/int_storage.c
===================================================================
--- src/char/int_storage.c  (revision 17312)
+++ src/char/int_storage.c  (working copy)
@@ -141,7 +141,7 @@
    return;
 }
 
-// q?f[^?
+// Delete char storage
 int inter_storage_delete(int account_id)
 {
    if( SQL_ERROR == Sql_Query(sql_handle, "DELETE FROM `%s` WHERE `account_id`='%d'", storage_db, account_id) )
Index: src/char/char.c
===================================================================
--- src/char/char.c (revision 17312)
+++ src/char/char.c (working copy)
@@ -1673,8 +1673,7 @@
    Sql_GetData(sql_handle, 6, &data, NULL); partner_id = atoi(data);
    Sql_GetData(sql_handle, 7, &data, NULL); father_id = atoi(data);
    Sql_GetData(sql_handle, 8, &data, NULL); mother_id = atoi(data);
-        Sql_GetData(sql_handle, 9, &data, NULL);
-        elemental_id = atoi(data);
+   Sql_GetData(sql_handle, 9, &data, NULL); elemental_id = atoi(data);
 
    Sql_EscapeStringLen(sql_handle, esc_name, name, min(len, NAME_LENGTH));
    Sql_FreeResult(sql_handle);
Viewed 1008 times, submitted by lighta.