diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-13 03:54:35 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-13 03:54:35 +0000 |
commit | beeda58fd5525866d700d55d5504213bc2bd70fe (patch) | |
tree | b1aeb3e0e5cbd0ee144b270045f167368a7bfffb /src/map/trade.c | |
parent | cd6cab9425aec0f7f5f38e1e797db4b284b5c013 (diff) | |
download | hercules-beeda58fd5525866d700d55d5504213bc2bd70fe.tar.gz hercules-beeda58fd5525866d700d55d5504213bc2bd70fe.tar.bz2 hercules-beeda58fd5525866d700d55d5504213bc2bd70fe.tar.xz hercules-beeda58fd5525866d700d55d5504213bc2bd70fe.zip |
- Updated clif_disp_onlyself to not use dynamic memory and write directly to the player's buffer.
- Updated @noask to also tell the rejected what he has just rejected (added msg_athena entries for each of the different requests)
- Since noask already does a player lookup, updated the corresponding parsing functions to take the player rather than the player id (prevents double lookups)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7117 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/trade.c')
-rw-r--r-- | src/map/trade.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/map/trade.c b/src/map/trade.c index 3597eed71..236be38c2 100644 --- a/src/map/trade.c +++ b/src/map/trade.c @@ -23,8 +23,7 @@ * Initiates a trade request.
*------------------------------------------
*/
-void trade_traderequest(struct map_session_data *sd, int target_id) {
- struct map_session_data *target_sd;
+void trade_traderequest(struct map_session_data *sd, struct map_session_data *target_sd) {
int level;
nullpo_retv(sd);
@@ -34,7 +33,7 @@ void trade_traderequest(struct map_session_data *sd, int target_id) { return; //Can't trade in notrade mapflag maps.
}
- if ((target_sd = map_id2sd(target_id)) == NULL || sd == target_sd) {
+ if (target_sd == NULL || sd == target_sd) {
clif_tradestart(sd, 1); // character does not exist
return;
}
|