Old revision #pm8nykyc1 | New revision #pvyl4y1v5 | ||
---|---|---|---|
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 | … | … |
10 | } | 5 | } |
11 | 6 | ||
12 | local cityFrom = null; | 7 | local cityFrom = null; |
8 | local scp_counter = 0; | ||
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 | scp_counter++; |
23 | } while( | 23 | } while(scp_counter < 150); |
24 | } | 20 | } |