Skip to content

Commit

Permalink
bug 修改
Browse files Browse the repository at this point in the history
  • Loading branch information
xiongfj committed Nov 25, 2020
1 parent f997ff4 commit 2600df9
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions Tank/Tank/struct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,14 +305,15 @@ PropClass::PropClass()

//score_counter = 0;
//show_score = false;
loadimage(&score, _T("./res/big/500.gif"));

TCHAR buf[100];
for (int i = 0; i < 6; i++)
{
_stprintf_s(buf, _T("./res/big/prop/p%d.gif"), i);
loadimage(&image[i], buf);
}
//loadimage(&score, _T("./res/big/500.gif"));

//TCHAR buf[100];
//for (int i = 0; i < 6; i++)
//{不能在此加载,IMAGE 在 堆里面还没有初始化!!
// _stprintf_s(buf, _T("./res/big/prop/p%d.gif"), i);
// loadimage(&image[i], buf);
//}
}

//
Expand All @@ -325,6 +326,15 @@ void PropClass::Init(BoxMarkStruct * b)
can_show = false;
show_score = false;
score_counter = 0;

loadimage(&score, _T("./res/big/500.gif"));

TCHAR buf[100];
for (int i = 0; i < 6; i++)
{
_stprintf_s(buf, _T("./res/big/prop/p%d.gif"), i);
loadimage(&image[i], buf);
}
}

// GameControl 内循环检测该函数
Expand Down

0 comments on commit 2600df9

Please sign in to comment.