[crossfire] Re: [Crossfire-cvs] CVS commit: crossfire

Andreas Kirschbaum kirschbaum at myrealbox.com
Thu Sep 1 02:36:23 CDT 2005


     crossfire-cvs-admin at lists.sourceforge.net
     
      wrote:
>
     
      Module Name:	crossfire
     
     >
     
      Committed By:	tchize
     
     >
     
      Date:		Wed Aug 31 20:07:22 UTC 2005
     
     [...]
>
     
      Log Message:
     
     >
     
      Accelerated map loading (a lot) and map saving (a bit) codes to improve map transition
     
     >
     
      experience.
     
     [...]
>
     
      Index: crossfire/common/object.c
     
     >
     
      diff -c crossfire/common/object.c:1.100 crossfire/common/object.c:1.101
     
     >
     
      *** crossfire/common/object.c:1.100	Sun Aug 28 20:52:49 2005
     
     >
     
      --- crossfire/common/object.c	Wed Aug 31 13:07:22 2005
     
     [...]
>
     
      --- 1602,1612 ----
     
     >
     
            /* If we have a floor, we know the player, if any, will be above
     
     >
     
             * it, so save a few ticks and start from there.
     
     >
     
             */
     
     >
     
      !     if (!(flag |INS_MAP_LOAD))
     
     >
     
      !     	for(tmp=floor?floor:GET_MAP_OB(op->map,op->x,op->y);tmp!=NULL;tmp=tmp->above) {
     
     >
     
      ! 		if (tmp->type == PLAYER)
     
     >
     
      ! 	    	tmp->contr->socket.update_look=1;
     
     >
     
      !     	}
     
     >
     
     
     >
     
            /* If this object glows, it may affect lighting conditions that are
     
     >
     
             * visible to others on this map.  But update_all_los is really
     
     >
     
     
     
The condition "!(flag |INS_MAP_LOAD)" probably is not correct:
FLAG_MAP_LOAD is the constant 0x20. Therefore "(flag|INS_MAP_LOAD)" is
always non-zero which means "!(non-zero)" is always false.

    
    


More information about the crossfire mailing list