| 231 | } |
| 232 | |
| 233 | void NPCTarget::TargetSet(xEnt* ent, int b) |
| 234 | { |
| 235 | ent_target = ent; |
| 236 | if ((ent != NULL) && (b != 0)) |
| 237 | { |
| 238 | typ_target = NPC_TGT_PLYR; |
| 239 | return; |
| 240 | } |
| 241 | if (ent != NULL) |
| 242 | { |
| 243 | typ_target = NPC_TGT_ENT; |
| 244 | return; |
| 245 | } |
| 246 | typ_target = NPC_TGT_NONE; |
| 247 | } |
| 248 | |
| 249 | void NPCTarget::TargetClear() |
| 250 | { |