summaryrefslogtreecommitdiff
path: root/src/game-server/buysell.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-07-27 13:04:24 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-07-27 13:04:24 +0200
commit006a213747eb8063ad543211b9776caba027ea4a (patch)
tree5e47f10514095203fc6fed7d4aed4b3a7e1a0754 /src/game-server/buysell.cpp
parent01b9c1c451d0c082cdc55475b8546e5638da8369 (diff)
downloadmanaserv-006a213747eb8063ad543211b9776caba027ea4a.tar.gz
manaserv-006a213747eb8063ad543211b9776caba027ea4a.tar.bz2
manaserv-006a213747eb8063ad543211b9776caba027ea4a.tar.xz
manaserv-006a213747eb8063ad543211b9776caba027ea4a.zip
Removed the inventory delay mode for now.
I said I wouldn't do it, but I change my mind. Here is why: The delay mode is used in the trading code, and in the inventory code for lua only. In the lua part, the delay mode is useless as it is used only when the script is requesting removal of more items than owned. This is something that can't be handled well anyway, as for the script part, even when the character was still keeping its items. Plus, it's not actually an error, IMHO. In the trading code, it made sense. But the next commit will bring design changes making the inventory items and the equipment items not linked anymore. Hence, making it impossible to trade equipped items, for instance, which is a good thing IMHO. It will also remove the need of a delayed inventory mode in that case. The two cases where it is used will disappear, making it useless. Last but no least, the part watching for equipment changes in the commit() function is not something easy to debug without first having a proper and working base. (checking of two multimaps changes, for instance). We can add it back once the code has been fully debugged for the most skilled among us. And yes, I am sure of what I'm currently doing. For now the whole inventory and trading code is in need of review but it already was, anyway.
Diffstat (limited to 'src/game-server/buysell.cpp')
0 files changed, 0 insertions, 0 deletions