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

Comparing deliantra/server/common/object.C (file contents):
Revision 1.352 by root, Tue Jan 3 11:25:31 2012 UTC vs.
Revision 1.353 by root, Fri Jan 27 22:00:39 2012 UTC

2008 */ 2008 */
2009int 2009int
2010find_free_spot (const object *ob, maptile *m, int x, int y, int start, int stop) 2010find_free_spot (const object *ob, maptile *m, int x, int y, int start, int stop)
2011{ 2011{
2012 int altern[SIZEOFFREE]; 2012 int altern[SIZEOFFREE];
2013 int index = 0, flag; 2013 int index = 0;
2014 2014
2015 for (int i = start; i < stop; i++) 2015 for (int i = start; i < stop; i++)
2016 { 2016 {
2017 mapxy pos (m, x, y); pos.move (i); 2017 mapxy pos (m, x, y); pos.move (i);
2018 2018
2130 * there is capable of. 2130 * there is capable of.
2131 */ 2131 */
2132int 2132int
2133find_dir (maptile *m, int x, int y, object *exclude) 2133find_dir (maptile *m, int x, int y, object *exclude)
2134{ 2134{
2135 int max = SIZEOFFREE, mflags; 2135 int max = SIZEOFFREE;
2136 MoveType move_type; 2136 MoveType move_type;
2137 2137
2138 if (exclude && exclude->head_ () != exclude) 2138 if (exclude && exclude->head_ () != exclude)
2139 { 2139 {
2140 exclude = exclude->head; 2140 exclude = exclude->head;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines