Something weird with the conditions here.
| 47 | |
| 48 | // Something weird with the conditions here. |
| 49 | zNPCSpawner* zNPCSpawner_GetInstance() |
| 50 | { |
| 51 | SMDepot* depot = &g_smdepot; |
| 52 | zNPCSpawner* sm = (zNPCSpawner*)depot->spawners.list; |
| 53 | if (depot->spawners.cnt > 0) |
| 54 | { |
| 55 | for (S32 i = depot->spawners.cnt; i > 0; i--) |
| 56 | { |
| 57 | zNPCSpawner* sm_tmp = sm; |
| 58 | if (!(sm_tmp->flg_spawner & 1)) |
| 59 | { |
| 60 | sm_tmp->flg_spawner |= 1; |
| 61 | return sm_tmp; |
| 62 | } |
| 63 | sm++; |
| 64 | } |
| 65 | return NULL; |
| 66 | } |
| 67 | else |
| 68 | { |
| 69 | return NULL; |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | void zNPCSpawner::Subscribe(zNPCCommon* owner) |
| 74 | { |
no outgoing calls
no test coverage detected