Code: Show/Hide int dest_x, dest_y, src_x, src_y; getCatapultCoords(dest_catapult, &dest_x, &dest_y); getCatapultCoords(source_catapult, &src_x, &src_y); int offset_x = (dest_x - src_x) * 16; int offset_y = (dest_y - src_y) * 16; struct S2CWeapons wpn = { S2C_WEAPON, p->position.rotation, current_ticks() & 0xFFFF, p->position.x + offset_x, p->position.yspeed, p->pid, p->position.xspeed, 0, p->position.status, 0, p->position.y + offset_y, p->position.bounty }; DoChecksum(&wpn); net->SendToOne(p, (byte*)&wpn, sizeof(struct S2CWeapons) - sizeof(struct ExtraPosData), NET_PRI_P4); |
D1st0rt wrote: |
Maybe if someone had a makefile for DevC++ they could post it here
EDIT: I think Solo Ace had a makefile on his website, but its down now |