Lines Matching defs:ptr
52 struct shipspecs *ptr = mc;
55 #define FIX(x, m) (m - ptr->x > count \
56 ? (ptr->x += count, count = 0) : (count -= m - ptr->x, ptr->x = m))
81 int max = ptr->guns/4;
82 if (ptr->hull < max) {
84 send_hull(ms, ptr->hull);
89 if (ptr->gunL < ptr->gunR) {
90 int max = ptr->guns/5 - ptr->carL;
91 if (ptr->gunL < max) {
93 send_gunl(ms, ptr->gunL, ptr->carL);
96 int max = ptr->guns/5 - ptr->carR;
97 if (ptr->gunR < max) {
99 send_gunr(ms, ptr->gunR, ptr->carR);
105 if (ptr->rig4 >= 0 && ptr->rig4 < X) {
107 send_rig4(ms, ptr->rig4);
109 if (count && ptr->rig3 < X) {
111 send_rig3(ms, ptr->rig3);
113 if (count && ptr->rig2 < X) {
115 send_rig2(ms, ptr->rig2);
117 if (count && ptr->rig1 < X) {
119 send_rig1(ms, ptr->rig1);