ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/c_object.C
(Generate patch)

Comparing deliantra/server/server/c_object.C (file contents):
Revision 1.133 by root, Sun Jan 29 02:47:05 2017 UTC vs.
Revision 1.135 by root, Sun Nov 18 00:37:11 2018 UTC

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;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines