| 105 | } |
| 106 | |
| 107 | S32 zNPCSpawner::AddSpawnNPC(zNPCCommon* npc) |
| 108 | { |
| 109 | S32 ack = 0; |
| 110 | for (S32 i = 0; i < 0x10; i++) |
| 111 | { |
| 112 | SMNPCStatus* npc_stat = &this->npcpool[i]; |
| 113 | if (npc_stat->npc == NULL) |
| 114 | { |
| 115 | npc_stat->npc = npc; |
| 116 | ack = 1; |
| 117 | npc_stat->status = SM_NPC_READY; |
| 118 | npc_stat->sp_prefer = NULL; |
| 119 | break; |
| 120 | } |
| 121 | } |
| 122 | // Need to figure out what it is calling here. |
| 123 | npc->DBG_Name(); |
| 124 | return ack; |
| 125 | } |
| 126 | |
| 127 | void zNPCSpawner::Reset() |
| 128 | { |