Fix "typo" in Cybermind commit.
This commit is contained in:
parent
ef28ab5a84
commit
2f97c091fb
2 changed files with 1 additions and 6 deletions
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue