X operations(XOPS)に非常に近いFPSゲームを制作・リメイクし、成果物をオープンソースとして公開することを目的としたプロジェクトです。
| Revision | 102 (tree) |
|---|---|
| Time | 2015-08-29 14:51:25 |
| Author | |
銃弾を発射したフレームに視点移動が適用されないバグの修正。ssコマンドを使用する際にコンソールが映り込む場合がある問題の改善。
| @@ -1044,6 +1044,7 @@ | ||
| 1044 | 1044 | |
| 1045 | 1045 | #ifdef ENABLE_DEBUGCONSOLE |
| 1046 | 1046 | Show_Console = false; |
| 1047 | + ScreenShot = 0; | |
| 1047 | 1048 | |
| 1048 | 1049 | //コンソール用初期化 |
| 1049 | 1050 | InfoConsoleData = new ConsoleData [MAX_CONSOLELINES]; |
| @@ -1211,6 +1212,11 @@ | ||
| 1211 | 1212 | if( camera_ry < DegreeToRadian(-70) ) camera_ry = DegreeToRadian(-70); |
| 1212 | 1213 | } |
| 1213 | 1214 | |
| 1215 | + //プレイヤー(オブジェクト)の向きを設定 | |
| 1216 | + if( (PlayerAI == false)&&(myHuman->GetHP() > 0) ){ | |
| 1217 | + myHuman->SetRxRy(mouse_rx, mouse_ry); | |
| 1218 | + } | |
| 1219 | + | |
| 1214 | 1220 | if( inputCtrl->CheckKeyDown(GetEscKeycode()) ){ //ゲーム終了操作かチェック |
| 1215 | 1221 | GameState->PushBackSpaceKey(); |
| 1216 | 1222 | } |
| @@ -1582,11 +1588,6 @@ | ||
| 1582 | 1588 | weaponid = myHuman->GetMainWeaponTypeNO(); |
| 1583 | 1589 | GameParamInfo.GetWeapon(weaponid, &data); |
| 1584 | 1590 | |
| 1585 | - //プレイヤー(オブジェクト)の向きを設定 | |
| 1586 | - if( (PlayerAI == false)&&(myHuman->GetHP() > 0) ){ | |
| 1587 | - myHuman->SetRxRy(mouse_rx, mouse_ry); | |
| 1588 | - } | |
| 1589 | - | |
| 1590 | 1591 | //オブジェクトマネージャーを実行 |
| 1591 | 1592 | if( Cmd_F5 == true ){ |
| 1592 | 1593 | ObjMgr.Process( ObjMgr.GetPlayerID() , false, camera_rx, camera_ry); |
| @@ -2161,7 +2162,10 @@ | ||
| 2161 | 2162 | |
| 2162 | 2163 | #ifdef ENABLE_DEBUGCONSOLE |
| 2163 | 2164 | if( Show_Console == true ){ |
| 2164 | - if( ScreenShot == false ){ | |
| 2165 | + if( ScreenShot == 1 ){ | |
| 2166 | + ScreenShot = 2; | |
| 2167 | + } | |
| 2168 | + else{ | |
| 2165 | 2169 | RenderConsole(); |
| 2166 | 2170 | } |
| 2167 | 2171 | } |
| @@ -2883,7 +2887,7 @@ | ||
| 2883 | 2887 | |
| 2884 | 2888 | //スクリーンショットを撮影 |
| 2885 | 2889 | // ※コンソール画面を削除するため、撮影を1フレーム遅らせる。 |
| 2886 | - if( ScreenShot == true ){ | |
| 2890 | + if( ScreenShot == 2 ){ | |
| 2887 | 2891 | char fname[256]; |
| 2888 | 2892 | |
| 2889 | 2893 | //ファイル名を決定 |
| @@ -2898,12 +2902,13 @@ | ||
| 2898 | 2902 | else{ |
| 2899 | 2903 | AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), "[Error] Save failed."); |
| 2900 | 2904 | } |
| 2905 | + | |
| 2906 | + ScreenShot = 0; | |
| 2901 | 2907 | } |
| 2902 | - if( strcmp(NewCommand, "ss") == 0 ){ | |
| 2903 | - ScreenShot = true; | |
| 2904 | - } | |
| 2905 | 2908 | else{ |
| 2906 | - ScreenShot = false; | |
| 2909 | + if( strcmp(NewCommand, "ss") == 0 ){ | |
| 2910 | + ScreenShot = 1; | |
| 2911 | + } | |
| 2907 | 2912 | } |
| 2908 | 2913 | |
| 2909 | 2914 | //コンソールをクリア |
| @@ -199,7 +199,7 @@ | ||
| 199 | 199 | ConsoleData *InfoConsoleData; //!< デバック用コンソールデータ(表示済み) |
| 200 | 200 | ConsoleData *InputConsoleData; //!< デバック用コンソールデータ(入力中) |
| 201 | 201 | char NewCommand[MAX_CONSOLELEN]; //!< 新たに入力された未処理のコマンド |
| 202 | - bool ScreenShot; //!< SSを撮影する | |
| 202 | + int ScreenShot; //!< SSを撮影する | |
| 203 | 203 | void AddInfoConsole(int color, char *str); |
| 204 | 204 | void ConsoleInputText(char inchar); |
| 205 | 205 | void ConsoleDeleteText(); |