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

Comparing deliantra/server/server/move.C (file contents):
Revision 1.8 by root, Thu Sep 14 22:34:04 2006 UTC vs.
Revision 1.9 by root, Sat Sep 16 22:24:13 2006 UTC

59move_ob (object *op, int dir, object *originator) 59move_ob (object *op, int dir, object *originator)
60{ 60{
61 sint16 newx = op->x + freearr_x[dir]; 61 sint16 newx = op->x + freearr_x[dir];
62 sint16 newy = op->y + freearr_y[dir]; 62 sint16 newy = op->y + freearr_y[dir];
63 object *tmp; 63 object *tmp;
64 mapstruct *m; 64 maptile *m;
65 int mflags; 65 int mflags;
66 66
67 if (op == NULL) 67 if (op == NULL)
68 { 68 {
69 LOG (llevError, "Trying to move NULL.\n"); 69 LOG (llevError, "Trying to move NULL.\n");
199teleport (object *teleporter, uint8 tele_type, object *user) 199teleport (object *teleporter, uint8 tele_type, object *user)
200{ 200{
201 object *altern; 201 object *altern;
202 int i, j, k, nrofalt = 0; 202 int i, j, k, nrofalt = 0;
203 object *other_teleporter, *tmp; 203 object *other_teleporter, *tmp;
204 mapstruct *m; 204 maptile *m;
205 sint16 sx, sy; 205 sint16 sx, sy;
206 206
207 if (user == NULL) 207 if (user == NULL)
208 return 0; 208 return 0;
209 if (user->head != NULL) 209 if (user->head != NULL)
307 * This is currently only used for the boulder roll code. 307 * This is currently only used for the boulder roll code.
308 * Returns 1 if object does not fit, 0 if it does. 308 * Returns 1 if object does not fit, 0 if it does.
309 */ 309 */
310 310
311int 311int
312try_fit (object *op, mapstruct *m, int x, int y) 312try_fit (object *op, maptile *m, int x, int y)
313{ 313{
314 object *tmp, *more; 314 object *tmp, *more;
315 sint16 tx, ty; 315 sint16 tx, ty;
316 int mflags; 316 int mflags;
317 mapstruct *m2; 317 maptile *m2;
318 318
319 if (op->head) 319 if (op->head)
320 op = op->head; 320 op = op->head;
321 321
322 for (more = op; more; more = more->more) 322 for (more = op; more; more = more->more)
355roll_ob (object *op, int dir, object *pusher) 355roll_ob (object *op, int dir, object *pusher)
356{ 356{
357 object *tmp; 357 object *tmp;
358 sint16 x, y; 358 sint16 x, y;
359 int flags; 359 int flags;
360 mapstruct *m; 360 maptile *m;
361 MoveType move_block; 361 MoveType move_block;
362 362
363 if (op->head) 363 if (op->head)
364 op = op->head; 364 op = op->head;
365 365
421 && owner == pusher 421 && owner == pusher
422#endif 422#endif
423 ) 423 )
424 { 424 {
425 int temp; 425 int temp;
426 mapstruct *m; 426 maptile *m;
427 427
428 remove_ob (who); 428 remove_ob (who);
429 remove_ob (pusher); 429 remove_ob (pusher);
430 temp = pusher->x; 430 temp = pusher->x;
431 pusher->x = who->x; 431 pusher->x = who->x;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines