Skip to content

Commit

Permalink
Added morale boxes to the launch facility screenE
Browse files Browse the repository at this point in the history
  • Loading branch information
peyre committed Apr 27, 2011
1 parent 0da4e5e commit 2b785ba
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 31 deletions.
66 changes: 36 additions & 30 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,49 +1,55 @@
2011-02-23 Leon Baradat <[email protected]>

* V259

* radar.c: Added morale boxes next to 'naut names in launch facility screen

2011-02-23 Nicolas Laplume <[email protected]>

* V258

* configure.in: Changed version to 1.0.0
* vab.c, options.c, options.h: Readded Atlas/R7 Booster capacity (removed option to turn it off)
* prest.c: Changed Prestige Seconds text from "(SCD)" to "(2ND)"
* budget.c: Fixed bug in Viewing Stand when flown missions was fewer than 3
* mission.dat: Fixed bug in Lunar Missions (from V252)
* configure.in: Changed version to 1.0.0

* vab.c, options.c, options.h: Readded Atlas/R7 Booster capacity (removed option to turn it off)

* prest.c: Changed Prestige Seconds text from "(SCD)" to "(2ND)"

* budget.c: Fixed bug in Viewing Stand when flown missions was fewer than 3

* mission.dat: Fixed bug in Lunar Missions (from V252)

2011-02-20 Nicolas Laplume <[email protected]>

* V257

* mission.dat: Fixed bug in some failures in Lunar Missions (from V252)
* place.c: Changed the Prestige First screen in Mission Review to show also Prestige Seconds
* prest.c: Reduced penalty in manned missions when no-one dies to -7
* mission.dat: Fixed bug in some failures in Lunar Missions (from V252)

* place.c: Changed the Prestige First screen in Mission Review to show also Prestige Seconds

* prest.c: Reduced penalty in manned missions when no-one dies to -7

2011-02-17 Nicolas Laplume <[email protected]>

* V256

* newmis.c: Fixed bug in the order of the missions in 2-players games
* newmis.c: Fixed bug in the order of the missions in 2-players games

2011-02-14 Nicolas Laplume <[email protected]>

* V255

* start.c: Fixed bug in the naut morale caluclations. Changed the penalty/bonus when crewmates are compatible
* place.c: Added Prestige First in Mission Review
* budget.c: Viwing Stand now shows all missions, not just last 3
* vab.c: VAB's Autopurchase now shows the price of the equipment
* vab.c, options: Removed Atlas Booster capacity (can be turned on in config file)
* mc.c, options: Added Cheat to enable sucessful missions increase R&DMax
* start.c: Fixed bug in the naut morale caluclations. Changed the penalty/bonus when crewmates are compatible

* place.c: Added Prestige First in Mission Review

* budget.c: Viwing Stand now shows all missions, not just last 3

* vab.c: VAB's Autopurchase now shows the price of the equipment

* vab.c, options: Removed Atlas Booster capacity (can be turned on in config file)

* mc.c, options: Added Cheat to enable sucessful missions increase R&DMax

2011-02-10 Nicolas Laplume <[email protected]>

* V254
Expand Down
22 changes: 22 additions & 0 deletions radar.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,17 @@ void PadDraw(char plr,char pad)
if (j==6) PrintAt(0,0,"(CREW VII)");
if (j==7) PrintAt(0,0,"(CREW VIII)");
for (k=0;k<Data->P[plr].Gcnt[i][j];k++) {
// Draw a morale box for each crew member - Leon
grSetColor(1);
RectFill(13,110+7*k,20,110+7*k,2); // Top
RectFill(13,110+7*k,13,116+7*k,2); // Left
RectFill(13,116+7*k,20,116+7*k,4); // Bottom
RectFill(21,110+7*k,21,116+7*k,4); // Right
if (Data->P[plr].Pool[Data->P[plr].Crew[i][j][k]-1].Mood>=65) RectFill(14,111+7*k,20,115+7*k,16);
if (Data->P[plr].Pool[Data->P[plr].Crew[i][j][k]-1].Mood<65 && Data->P[plr].Pool[Data->P[plr].Crew[i][j][k]-1].Mood>=40) RectFill(14,111+7*k,20,115+7*k,11);
if (Data->P[plr].Pool[Data->P[plr].Crew[i][j][k]-1].Mood<40 && Data->P[plr].Pool[Data->P[plr].Crew[i][j][k]-1].Mood>=20) RectFill(14,111+7*k,20,115+7*k,8);
if (Data->P[plr].Pool[Data->P[plr].Crew[i][j][k]-1].Mood<20) RectFill(14,111+7*k,20,115+7*k,0);
if (Data->P[plr].Pool[Data->P[plr].Crew[i][j][k]-1].Mood==0) RectFill(14,111+7*k,20,115+7*k,3);
grSetColor(1);
if (Data->P[plr].Pool[Data->P[plr].Crew[i][j][k]-1].Sex==1) grSetColor(5); // Show female 'nauts in blue
if (Data->P[plr].Pool[Data->P[plr].Crew[i][j][k]-1].RDelay>0) grSetColor(0); // Show anyone who's announced retirement in black
Expand All @@ -168,6 +179,17 @@ void PadDraw(char plr,char pad)
if (l==6) PrintAt(0,0,"(CREW VII)");
if (l==7) PrintAt(0,0,"(CREW VIII)");
for (k=0;k<Data->P[plr].Gcnt[i][l];k++) {
// Draw a morale box for each crew member - Leon
grSetColor(1);
RectFill(13,148+7*k,20,148+7*k,2); // Top
RectFill(13,148+7*k,13,154+7*k,2); // Left
RectFill(13,154+7*k,20,154+7*k,4); // Bottom
RectFill(21,148+7*k,21,154+7*k,4); // Right
if (Data->P[plr].Pool[Data->P[plr].Crew[i][l][k]-1].Mood>=65) RectFill(14,149+7*k,20,153+7*k,16);
if (Data->P[plr].Pool[Data->P[plr].Crew[i][l][k]-1].Mood<65 && Data->P[plr].Pool[Data->P[plr].Crew[i][l][k]-1].Mood>=40) RectFill(14,149+7*k,20,153+7*k,11);
if (Data->P[plr].Pool[Data->P[plr].Crew[i][l][k]-1].Mood<40 && Data->P[plr].Pool[Data->P[plr].Crew[i][l][k]-1].Mood>=20) RectFill(14,149+7*k,20,153+7*k,8);
if (Data->P[plr].Pool[Data->P[plr].Crew[i][l][k]-1].Mood<20) RectFill(14,149+7*k,20,153+7*k,0);
if (Data->P[plr].Pool[Data->P[plr].Crew[i][l][k]-1].Mood==0) RectFill(14,149+7*k,20,153+7*k,3);
grSetColor(1);
if (Data->P[plr].Pool[Data->P[plr].Crew[i][l][k]-1].Sex==1) grSetColor(5); // Show female 'nauts in blue
if (Data->P[plr].Pool[Data->P[plr].Crew[i][l][k]-1].RDelay>0) grSetColor(0); // But show anyone who's announced retirement in black
Expand Down
2 changes: 1 addition & 1 deletion version.c
Original file line number Diff line number Diff line change
@@ -1 +1 @@
258
259

0 comments on commit 2b785ba

Please sign in to comment.