Fixed bug : first oil is free

This commit is contained in:
jsalmon3 2004-04-18 00:30:58 +00:00
parent dc1a248d36
commit a12ea9def7
2 changed files with 3 additions and 2 deletions

View file

@ -35,6 +35,7 @@
<ul>
<li>Future 2.1 Release<p>
<ul>
<li>Fixed bug #931995: first oil is free (from Jimmy Salmon).
<li>Add SetUseHPForXp() in script to replace compile option (from Joris Dauphin).
<li>Fixed redraw in big map mode (from Jimmy Salmon and Joris Dauphin).
<li>Scroll speed no longer depends on game speed (from Jimmy Salmon).

View file

@ -350,7 +350,7 @@ global void DoRightButton(int sx, int sy)
//
if (type->Building) {
if (dest && dest->Type->GivesResource) {
if (dest && dest->Type->GivesResource && dest->Type->CanHarvest) {
dest->Blink = 4;
DebugLevel3("Set rally point to a resource.\n");
SendCommandResource(unit, dest, flush);
@ -1072,7 +1072,7 @@ local int SendResource(int sx, int sy)
}
}
if (unit->Type->Building) {
if (dest && dest->Type->GivesResource) {
if (dest && dest->Type->GivesResource && dest->Type->CanHarvest) {
dest->Blink = 4;
DebugLevel3("Set rally point to a resource.\n");
SendCommandResource(unit, dest, !(KeyModifiers & ModifierShift));