| Old revision #pm8nykyc1 | New revision #psveifvzx | ||
|---|---|---|---|
| 1 | |||
| 2 | |||
| 3 | |||
| 4 | |||
| 5 | |||
| 6 | this.cvgs = SCPClient_CompanyValueGS(this.scp); | 1 | this.cvgs = SCPClient_CompanyValueGS(this.scp); |
| 7 | this.ncg = SCPClient_NoCarGoal(this.scp); | 2 | this.ncg = SCPClient_NoCarGoal(this.scp); |
| 8 | 3 | ||
| 9 | loading = false; | 4 | loading = false; |
| 10 | } | 5 | } |
| 6 | local scp_counter = 0; | ||
| 11 | 7 | ||
| 12 | local cityFrom = null; | 8 | local cityFrom = null; |
| 13 | while (AIController.Sleep(1)) { | 9 | while (AIController.Sleep(1)) { |
| 14 | if (this.scp != null) { | 10 | if (this.scp != null) { |
| 15 | |||
| 16 | do { | 11 | do { |
| 17 | AILog.Info("Counter = " + | 17 | AILog.Info("Counter = " + scp_counter); |
| 18 | this.scp.Check(); | 13 | this.scp.Check(); |
| 19 | if (cvgs.IsCompanyValueGSGame() || ncg.IsNoCarGoalGame()) { | 14 | if (cvgs.IsCompanyValueGSGame() || ncg.IsNoCarGoalGame()) { |
| 15 | scp_counter = 0; | ||
| 20 | break; | 16 | break; |
| 21 | } | 17 | } |
| 22 | | 22 | if (scp_counter < 150) scp_counter++; |
| 23 | } while( | 23 | } while(scp_counter < 150); |
| 24 | } | 20 | } |