summaryrefslogtreecommitdiff
path: root/src/map/vending.c
diff options
context:
space:
mode:
authorzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-05-12 16:47:12 +0000
committerzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-05-12 16:47:12 +0000
commitcd40a623549f42d77c54515360813131e6c9c33d (patch)
tree09afde7308a84efae2982546f73d7231d2e355b0 /src/map/vending.c
parent0c5e8296319a3f1396e0208fba16135ac2c7b4b0 (diff)
downloadhercules-cd40a623549f42d77c54515360813131e6c9c33d.tar.gz
hercules-cd40a623549f42d77c54515360813131e6c9c33d.tar.bz2
hercules-cd40a623549f42d77c54515360813131e6c9c33d.tar.xz
hercules-cd40a623549f42d77c54515360813131e6c9c33d.zip
- Rental items now can be stackable items too.
- Added @font command to test kRO fonts. (Client side requires : Langtype 0 / Hex + Fonts Files on the data folder). - Rental now announces with a maximum time to fix a problem with 1 month or more rentals. - Reduced amount of calculations of Flee on map change (only if required). - More security on Rental items. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13761 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/vending.c')
-rw-r--r--src/map/vending.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/vending.c b/src/map/vending.c
index c77b1ac78..a6ea1d84b 100644
--- a/src/map/vending.c
+++ b/src/map/vending.c
@@ -266,6 +266,7 @@ void vending_openvending(struct map_session_data* sd, const char* message, bool
//NOTE: official server does not do any of the following checks!
|| !sd->status.cart[index].identify // unidentified item
|| sd->status.cart[index].attribute == 1 // broken item
+ || sd->status.cart[index].expire_time // It should not be in the cart but just in case
|| !itemdb_cantrade(&sd->status.cart[index], pc_isGM(sd), pc_isGM(sd)) ) // untradeable item
continue;