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,2013,2014,2015,2016 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 |
… | |
… | |
875 | { |
876 | { |
876 | vector<object *>::iterator i; |
877 | vector<object *>::iterator i; |
877 | |
878 | |
878 | bool did_one = false; |
879 | bool did_one = false; |
879 | |
880 | |
880 | for (i = objs.begin (); i != objs.end (); i++) |
881 | for (auto &&op : objs) |
881 | { |
882 | { |
882 | drop (dropper, *i); |
883 | drop (dropper, op); |
883 | if (cnt && --*cnt <= 0) break; |
884 | if (cnt && --*cnt <= 0) break; |
884 | did_one = true; |
885 | did_one = true; |
885 | } |
886 | } |
886 | |
887 | |
887 | return did_one; |
888 | return did_one; |