• R/O
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

X operations(XOPS)に非常に近いFPSゲームを制作・リメイクし、成果物をオープンソースとして公開することを目的としたプロジェクトです。


Commit MetaInfo

Revision101 (tree)
Time2015-08-29 13:05:49
Authorxops-mikan

Log Message

VC++でコンパイルする際にエラーが発生する問題の対策

Change Summary

Incremental Difference

--- trunk/gamemain.cpp (revision 100)
+++ trunk/gamemain.cpp (revision 101)
@@ -298,7 +298,7 @@
298298 if( ((int)(0.5f*GAMEFPS) < framecnt)&&(framecnt < (int)(4.0f*GAMEFPS)) ){
299299 char str[32];
300300 float effectA = 1.0f;
301- sprintf(str, GAMENAME" project", 0, 0);
301+ sprintf(str, "%s project", GAMENAME);
302302 if( framecnt < (int)(1.5f*GAMEFPS) ){ effectA = GetEffectAlpha(framecnt, 1.0f, 1.0f, 0.5f, false); }
303303 if( framecnt > (int)(3.0f*GAMEFPS) ){ effectA = GetEffectAlpha(framecnt, 1.0f, 1.0f, 3.0f, true); }
304304 d3dg->Draw2DTextureFontText(SCREEN_WIDTH/2 - strlen(str)*22/2, SCREEN_HEIGHT - 140, str, d3dg->GetColorCode(1.0f,1.0f,1.0f,effectA), 22, 22);
@@ -338,7 +338,7 @@
338338 if( (int)(12.0f*GAMEFPS) <= framecnt ){ //framecnt < (int)(17.0f*GAMEFPS)
339339 char str[32];
340340 float effectA = 1.0f;
341- sprintf(str, GAMENAME, 0, 0);
341+ sprintf(str, GAMENAME);
342342 if( framecnt < (int)(13.0f*GAMEFPS) ){ effectA = GetEffectAlpha(framecnt, 1.0f, 1.0f, 12.0f, false); }
343343 if( ((int)(16.0f*GAMEFPS) < framecnt)&&(framecnt < (int)(17.0f*GAMEFPS)) ){ effectA = GetEffectAlpha(framecnt, 1.0f, 1.0f, 16.0f, true); }
344344 if( framecnt >= (int)(17.0f*GAMEFPS) ){ effectA = 0.0f; }
@@ -2877,7 +2877,8 @@
28772877 if( strcmp(NewCommand, "ver") == 0 ){
28782878 sprintf(str, "%s Version:%s", GAMENAME, GAMEVERSION);
28792879 AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), str);
2880- AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), " (Graphics:"GRAPHICS_CORE" Sound:"SOUND_CORE")");
2880+ sprintf(str, " (Graphics:%s Sound:%s)", GRAPHICS_CORE, SOUND_CORE);
2881+ AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), str);
28812882 }
28822883
28832884 //スクリーンショットを撮影