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.351 by elmex, Fri Jun 3 08:36:45 2011 UTC vs.
Revision 1.353 by root, Fri Jan 27 22:00:39 2012 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 (©) 2005,2006,2007,2008,2009,2010,2011 Marc Alexander Lehmann / Robin Redeker / the Deliantra team 4 * Copyright (©) 2005,2006,2007,2008,2009,2010,2011,2012 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5 * Copyright (©) 2001 Mark Wedel & Crossfire Development Team 5 * Copyright (©) 2001 Mark Wedel & Crossfire Development Team
6 * Copyright (©) 1992 Frank Tore Johansen 6 * Copyright (©) 1992 Frank Tore Johansen
7 * 7 *
8 * Deliantra is free software: you can redistribute it and/or modify it under 8 * 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 9 * the terms of the Affero GNU General Public License as published by the
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