1 | /* |
1 | /* |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
3 | * |
3 | * |
|
|
4 | * Copyright (©) 2017,2018 Marc Alexander Lehmann / the Deliantra team |
4 | * Copyright (©) 2005,2006,2007,2008,2009,2010,2011,2012 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * Copyright (©) 2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * Copyright (©) 2002 Mark Wedel & Crossfire Development Team |
6 | * Copyright (©) 2002 Mark Wedel & Crossfire Development Team |
6 | * Copyright (©) 1992 Frank Tore Johansen |
7 | * Copyright (©) 1992 Frank Tore Johansen |
7 | * |
8 | * |
8 | * Deliantra is free software: you can redistribute it and/or modify it under |
9 | * Deliantra is free software: you can redistribute it and/or modify it under |
9 | * the terms of the Affero GNU General Public License as published by the |
10 | * the terms of the Affero GNU General Public License as published by the |
… | |
… | |
503 | |
504 | |
504 | return 0; |
505 | return 0; |
505 | } |
506 | } |
506 | |
507 | |
507 | /* |
508 | /* |
508 | * This function was part of drop, now is own function. |
509 | * This function was part of drop, now is own function. |
509 | * Player 'op' tries to put object 'tmp' into sack 'sack', |
510 | * Player 'op' tries to put object 'tmp' into sack 'sack', |
510 | * if nrof is non zero, then nrof objects is tried to put into sack. |
511 | * if nrof is non zero, then nrof objects is tried to put into sack. |
511 | * |
512 | * |
512 | * Note that the 'sack' in question can now be a transport, |
513 | * Note that the 'sack' in question can now be a transport, |
513 | * so this function isn't named very good anymore. |
514 | * so this function isn't named very good anymore. |
514 | */ |
515 | */ |
515 | void |
516 | void |
… | |
… | |
737 | } |
738 | } |
738 | |
739 | |
739 | object *curinv = op->inv; |
740 | object *curinv = op->inv; |
740 | object *nextinv; |
741 | object *nextinv; |
741 | |
742 | |
742 | /* |
743 | /* |
743 | This is the default. Drops everything not locked or considered |
744 | This is the default. Drops everything not locked or considered |
744 | not something that should be dropped. |
745 | not something that should be dropped. |
745 | */ |
746 | */ |
746 | /* |
747 | /* |
747 | Care must be taken that the next item pointer is not to money as |
748 | Care must be taken that the next item pointer is not to money as |