generated from sigonasr2/CPlusPlusProjectTemplate
Love your off-by-one errors
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
parent
4bd417871f
commit
b246dac938
2
main.cpp
2
main.cpp
@ -1028,7 +1028,7 @@ void Meteos::drawGame(float fElapsedTime,bool debugView){
|
||||
for (int y=0;y<=blocksInAttackQueue/40;y++){
|
||||
for (int x=0;x<10;x++){
|
||||
int amt=y*40+x*4;
|
||||
if (blocksInAttackQueue>=amt){
|
||||
if (blocksInAttackQueue>amt){
|
||||
if(blocksInAttackQueue<320){
|
||||
attackQueueDisplayStringColor=YELLOW;
|
||||
DrawRectDecal(gameBoard.drawOffset+vf2d{gameBoard.boardSize.x*12+16+26.f,27.6}-vf2d{x*2.4f,y*2.4f},{2.4,2.4},attackQueueDisplayStringColor);
|
||||
|
Loading…
x
Reference in New Issue
Block a user