From 17c0bcb75c202ec2249a3a4fb1889d79605f9c3c Mon Sep 17 00:00:00 2001 From: Killery Date: Sat, 2 Jan 2016 12:40:06 +0900 Subject: [PATCH] =?utf8?q?=E4=BB=8A=E5=BA=A6=E3=81=93=E3=81=9D=E3=83=9B?= =?utf8?q?=E3=82=99=E3=82=BF=E3=83=B3=E3=83=8F=E3=82=99=E3=82=AF=E3=82=99?= =?utf8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Awars III/FieldScene.m | 20 +------------------- Awars III/FieldView.m | 21 ++++++++++++++++++++- 2 files changed, 21 insertions(+), 20 deletions(-) diff --git a/Awars III/FieldScene.m b/Awars III/FieldScene.m index 7feb5f7..b643d5c 100755 --- a/Awars III/FieldScene.m +++ b/Awars III/FieldScene.m @@ -1922,25 +1922,7 @@ } - if(unitBreak){ - if(unitBreak->team == 2 && MF[MFselectedRow+1].MS.playerSet2 == 2){ - unitBreak->CPU = true; - cpuAImodeflag = true; - //NSLog(@"OMFG"); - }else if(unitBreak->team == 0 && MF[MFselectedRow+1].MS.playerSet1 == 2){ - unitBreak->CPU = true; - cpuAImodeflag = true; - //NSLog(@"OMFG"); - }else if(unitBreak->team == 1){ - unitBreak->CPU = true; - cpuAImodeflag = true; - //NSLog(@"OMFG"); - } - else{ - unitBreak->CPU = false; - cpuAImodeflag = false; - } - } + if(unitMoveEndFlag){ pussyLoopFlag = false; } diff --git a/Awars III/FieldView.m b/Awars III/FieldView.m index 92e6299..d1f96d2 100755 --- a/Awars III/FieldView.m +++ b/Awars III/FieldView.m @@ -338,6 +338,26 @@ if(U->team == 2) U->img = [self SetImageColor:U->CL.img color:2]; } + + if(U->team == 2 && MF[MFselectedRow+1].MS.playerSet2 == 2){ + U->CPU = true; + cpuAImodeflag = true; + //NSLog(@"OMFG"); + }else if(U->team == 0 && MF[MFselectedRow+1].MS.playerSet1 == 2){ + U->CPU = true; + cpuAImodeflag = true; + //NSLog(@"OMFG"); + }else if(U->team == 1){ + U->CPU = true; + cpuAImodeflag = true; + //NSLog(@"OMFG"); + } + else{ + unitBreak->CPU = false; + cpuAImodeflag = false; + } + + U = U->next; }U = UTop; @@ -353,7 +373,6 @@ B = B->next; }B = BTop; - unitColorInitFlag = false; } -- 2.11.0