| 168 | } |
| 169 | |
| 170 | void KartCam::DoPort(int camNo) |
| 171 | { |
| 172 | |
| 173 | if (RaceMgr::getCurrentManager()->isCrsDemoMode()) |
| 174 | { |
| 175 | mPtr = 0; |
| 176 | SetStartDemoPort(); |
| 177 | } |
| 178 | else if (RaceMgr::getCurrentManager()->isAwardDemoMode()) |
| 179 | { |
| 180 | mPtr = 0; |
| 181 | SetAwardDemoPort(); |
| 182 | } |
| 183 | else |
| 184 | { |
| 185 | switch (RaceMgr::getCurrentManager()->getCameraNumber()) |
| 186 | { |
| 187 | case 1: |
| 188 | { |
| 189 | mPtr = 0; |
| 190 | SetOneScreenPort(); |
| 191 | break; |
| 192 | } |
| 193 | case 2: |
| 194 | { |
| 195 | if (RaceMgr::getCurrentManager()->isSubScrExist()) |
| 196 | { |
| 197 | switch (camNo) |
| 198 | { |
| 199 | case 0: |
| 200 | mPtr = 0; |
| 201 | SetOneScreenPort(); |
| 202 | break; |
| 203 | case 1: |
| 204 | mPtr = 7; |
| 205 | SetSubScreenPort(); |
| 206 | break; |
| 207 | } |
| 208 | } |
| 209 | else |
| 210 | { |
| 211 | switch (camNo) |
| 212 | { |
| 213 | case 0: |
| 214 | mPtr = 1; |
| 215 | SetTwoScreenPort(0); |
| 216 | break; |
| 217 | case 1: |
| 218 | mPtr = 2; |
| 219 | SetTwoScreenPort(1); |
| 220 | break; |
| 221 | } |
| 222 | } |
| 223 | break; |
| 224 | } |
| 225 | case 3: |
| 226 | case 4: |
| 227 | { |
no test coverage detected