Difference for server/time.c from version 1.63 to 1.64


version 1.63 version 1.64
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_time_c =   * static char *rcsid_time_c =
  *    "$Id: time.c,v 1.63 2004/06/23 05:49:07 mwedel Exp $";   *    "$Id: time.c,v 1.64 2004/12/29 01:08:50 mwedel Exp $";
  */   */
   
 /*  /*
Line 1080
 
Line 1080
 void move_player_mover(object *op) {  void move_player_mover(object *op) {
     object *victim, *nextmover;      object *victim, *nextmover;
     int dir = op->stats.sp;      int dir = op->stats.sp;
       sint16 nx, ny;
       mapstruct *m;
   
     /* Determine direction now for random movers so we do the right thing */      /* Determine direction now for random movers so we do the right thing */
     if (!dir) dir=rndm(1, 8);      if (!dir) dir=rndm(1, 8);
Line 1094
 
Line 1096
  free_object(op);   free_object(op);
  return;   return;
      }       }
        nx = op->x+freearr_x[dir];
        ny = op->y+freearr_y[dir];
        m = op->map;
        if (get_map_flags(m, &m, nx, ny, &nx, &ny) == P_OUT_OF_MAP) {
    LOG(llevError,"move_player_mover: Trying to push player off the map! map=%s (%d, %d)\n",
        m->path, op->x, op->y);
    return ;
        }
   
      for(nextmover=get_map_ob(op->map,op->x+freearr_x[dir],op->y+freearr_y[dir]); nextmover !=NULL; nextmover=nextmover->above) {       for(nextmover=get_map_ob(m,nx, ny); nextmover !=NULL; nextmover=nextmover->above) {
  if(nextmover->type == PLAYERMOVER)    if(nextmover->type == PLAYERMOVER)
      nextmover->speed_left=-.99;       nextmover->speed_left=-.99;
  if(QUERY_FLAG(nextmover,FLAG_ALIVE)) {   if(QUERY_FLAG(nextmover,FLAG_ALIVE)) {


Legend:
line(s) removed in v.1.63 
line(s) changed
 line(s) added in v.1.64

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:52