--- work/dev/uox3.cpp.orig Sun Feb 14 02:14:34 1999 +++ work/dev/uox3.cpp Sun Feb 27 11:29:33 2000 @@ -2056,7 +2056,7 @@ count2=(count*19)+5; bpopen2[1]=count2/256; bpopen2[2]=count2%256; -// xsend(s, pause, 2, 0); +// xsend(s, xpause, 2, 0); xsend(s, bpopen2, 5, 0); for (i=0;i= 400013) + client[now]=accept(a_socket, (struct sockaddr *)&client_addr, (socklen_t*)&len); +#else client[now]=accept(a_socket, (struct sockaddr *)&client_addr, &len); +#endif // printf("Done! :)\n"); if (client[now]<0) { @@ -13411,7 +13415,7 @@ { chars[i].oldnpcWander=chars[i].npcWander; chars[i].npcWander=5; - chars[i].npcmovetime=(int)(currenttime+(NPCSPEED*CLOCKS_PER_SEC)); + chars[i].npcmovetime=(unsigned long int)(currenttime+(NPCSPEED*CLOCKS_PER_SEC)); } if ((chars[i].npc)&& @@ -13419,7 +13423,7 @@ (chars[i].hp>chars[i].st*chars[i].reattackat/100)) { chars[i].npcWander=chars[i].oldnpcWander; - chars[i].npcmovetime=(int)(currenttime+(NPCSPEED*CLOCKS_PER_SEC)); + chars[i].npcmovetime=(unsigned long int)(currenttime+(NPCSPEED*CLOCKS_PER_SEC)); chars[i].oldnpcWander=0; // so it won't save this at the wsc file } // end of flee code @@ -14614,7 +14618,7 @@ //near the player character: dnpctime=0; - if (chars[i].npc && (chars[i].npcmovetime<=currenttime||(overflow))) + if (chars[i].npc && (chars[i].npcmovetime<=(unsigned long int)currenttime||(overflow))) { //kolours***************************************(09/19/98) //fix for monsters to wander when within player's sphere @@ -14737,7 +14741,7 @@ } break; } } - chars[i].npcmovetime=(int)(currenttime+(NPCSPEED*CLOCKS_PER_SEC*(1+dnpctime))); //reset move timer + chars[i].npcmovetime=(unsigned long int)(currenttime+(NPCSPEED*CLOCKS_PER_SEC*(1+dnpctime))); //reset move timer } } } @@ -17537,12 +17541,12 @@ if (chars[target].npc) { if (!(chars[target].war)) npcToggleCombat(target); - chars[target].npcmovetime=(int)(getclock()+(NPCSPEED*CLOCKS_PER_SEC)); + chars[target].npcmovetime=(unsigned long int)(getclock()+(NPCSPEED*CLOCKS_PER_SEC)); } if ((chars[target2].npc)&&!(chars[target2].npcaitype==0x40)) { if (!(chars[target2].war)) npcToggleCombat(target2); - chars[target2].npcmovetime=(int)(getclock()+(NPCSPEED*CLOCKS_PER_SEC)); + chars[target2].npcmovetime=(unsigned long int)(getclock()+(NPCSPEED*CLOCKS_PER_SEC)); } sprintf(temp, "* You see %s attacking %s *", chars[target].name, chars[target2].name); for (i=0;i