version 1.13 | | version 1.14 |
---|
| | |
/* | | /* |
* static char *rcsid_arch_c = | | * static char *rcsid_arch_c = |
* "$Id: arch.c,v 1.13 2001/11/04 20:22:55 michtoen Exp $"; | | * "$Id: arch.c,v 1.14 2001/11/06 01:31:52 michtoen Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
object *op; | | object *op; |
archetype *at,*prev=NULL,*last_more=NULL; | | archetype *at,*prev=NULL,*last_more=NULL; |
int i,first=2; | | int i,first=2; |
| | int xo,yo; |
| | |
op=get_object(); | | op=get_object(); |
op->arch=first_archetype=at=get_archetype_struct(); | | op->arch=first_archetype=at=get_archetype_struct(); |
| | |
} | | } |
last_more=at; | | last_more=at; |
| | |
/*LOG(llevDebug,"Part object: %d,%d\n", at->clone.x,at->clone.y);*/ | | xo = at->clone.x; |
| | if(xo <0) |
| | xo=(xo*-1)|8; |
| | yo = at->clone.y; |
| | if(yo <0) |
| | yo=(yo*-1)|8; |
| | at->clone.quick_pos = 0|(xo<<4)|yo; |
prev->clone.quick_pos = 255; /* mark head tile */ | | prev->clone.quick_pos = 255; /* mark head tile */ |
at->clone.quick_pos = 0|(at->clone.x<<4)|at->clone.y; | | |
| | |
break; | | break; |
} | | } |