Skip to content

Commit

Permalink
Moved AVOID FAIL notif to stay out of the way of the FIX button
Browse files Browse the repository at this point in the history
  • Loading branch information
peyre committed Apr 18, 2012
1 parent b60a8cd commit bd0ffdc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
8 changes: 7 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
2012-04-10 Leon Baradat <[email protected]>
2012-04-17 Leon Baradat <[email protected]>

* V277

* rdplex.c: Moved AVOID FAIL notification to stay out of the way of the FIX button

2012-04-16 Leon Baradat <[email protected]>

* V276

Expand Down
12 changes: 4 additions & 8 deletions rdplex.c
Original file line number Diff line number Diff line change
Expand Up @@ -430,16 +430,12 @@ char RD(char player_index)
{ // b is the cost per roll
if (hardware==1)
b=Data->P[player_index].Probe[unit-1].RDCost;
if (Data->P[player_index].Probe[unit-1].SaveCard>0) PrintAt(170,90,"AVOID");
if (hardware==2)
b=Data->P[player_index].Rocket[unit-1].RDCost;
if (Data->P[player_index].Rocket[unit-1].SaveCard>0) PrintAt(170,90,"AVOID");
if (hardware==3)
b=Data->P[player_index].Manned[unit-1].RDCost;
if (Data->P[player_index].Manned[unit-1].SaveCard>0) PrintAt(50,10,"XX");
if (hardware==4)
b=Data->P[player_index].Misc[unit-1].RDCost;
if (Data->P[player_index].Misc[unit-1].SaveCard>0) PrintAt(170,90,"AVOID");
// Add to the expenditure data

if ( (b*roll <= Data->P[player_index].Cash) && QueryUnit(hardware,unit,player_index)
Expand Down Expand Up @@ -631,11 +627,11 @@ void ShowUnit(char hw,char un,char player_index)
}
if (avoidf>0)
{
RectFill(286,91,316,91,5);RectFill(286,106,316,106,5);
RectFill(286,92,286,105,5);RectFill(316,92,316,105,5);
RectFill(286,71,316,71,5);RectFill(286,86,316,86,5);
RectFill(286,72,286,85,5);RectFill(316,72,316,85,5);
grSetColor(11);
PrintAt(288,97,"AVOID");
PrintAt(291,104,"FAIL");
PrintAt(288,77,"AVOID");
PrintAt(291,84,"FAIL");
grSetColor(1);
}

Expand Down
2 changes: 1 addition & 1 deletion version.c
Original file line number Diff line number Diff line change
@@ -1 +1 @@
276
277

0 comments on commit bd0ffdc

Please sign in to comment.