P.247とP.249掲載のソースコードにおいて、不要な括弧が含まれている箇所がありました。お詫びして訂正いたします。

P.247 ES1Renderer.mm

誤:

int currentLapTimeMilliSeconds =
    (int)floor((currentGame.currentLapTime * 1000.0f) % 1000;

正:

int currentLapTimeMilliSeconds =
    (int)floor(currentGame.currentLapTime * 1000.0f) % 1000;

P.249 ES1Renderer.mm

誤:

int currentLapTimeMilliSeconds =
    (int)floor((currentGame.fastestLapTime * 1000.0f) % 1000;

正:

int currentLapTimeMilliSeconds =
    (int)floor(currentGame.fastestLapTime * 1000.0f) % 1000;
  • 会社