Fix "typo" in Cybermind commit.

This commit is contained in:
Joris 2012-04-27 10:52:04 +02:00
parent ef28ab5a84
commit 2f97c091fb
2 changed files with 1 additions and 6 deletions

View file

@ -539,7 +539,7 @@ void CPopupContentTypeVariable::Draw(int x, int y, const CPopup *, const unsigne
if (this->Index != -1) {
CUnitType &type = *UnitTypes[button->Value];
int value = type.Stats[ThisPlayer->Index].Variables[this->Index].Value;
int value = type.DefaultStat.Variables[this->Index].Value;
int diff = type.Stats[ThisPlayer->Index].Variables[this->Index].Value - value;
if (!diff) {

View file

@ -1200,14 +1200,10 @@ int HandleMouseScrollArea(int x, int y)
**
** @param x screen pixel X position.
** @param y screen pixel Y position.
**
** @return true if the mouse has moved, false otherwise
*/
void HandleCursorMove(int *x, int *y)
{
//
// Reduce coordinates to window-size.
//
if (*x < 0) {
*x = 0;
} else if (*x >= Video.Width) {
@ -1218,7 +1214,6 @@ void HandleCursorMove(int *x, int *y)
} else if (*y >= Video.Height) {
*y = Video.Height - 1;
}
CursorX = *x;
CursorY = *y;
}