Skip to content

Commit

Permalink
Fix: No cargaba Grh's > 32767
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquinodz committed Jul 20, 2020
1 parent 64a10e3 commit 8d96da0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Codigo/clsDX8Engine.bas
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ Function InMapBounds(X As Integer, Y As Integer) As Boolean

End Function

Public Sub Draw_GrhIndexMiniMap(ByVal grh_index As Integer, _
Public Sub Draw_GrhIndexMiniMap(ByVal grh_index As Long, _
ByVal X As Integer, _
ByVal Y As Integer, _
ByVal PixelWidth As Long, _
Expand Down
8 changes: 4 additions & 4 deletions Codigo/modEdicion.bas
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ Public Sub Superficie_Azar()

If frmConfigSup.MOSAICO.Value = vbChecked Then

Dim aux As Integer
Dim aux As Long

Dim dy As Integer

Expand Down Expand Up @@ -357,7 +357,7 @@ Public Sub Superficie_Bordes()

If frmConfigSup.MOSAICO.Value = vbChecked Then

Dim aux As Integer
Dim aux As Long

aux = Val(frmMain.cGrh.Text) + ((Y Mod frmConfigSup.mLargo) * frmConfigSup.mAncho) + (X Mod frmConfigSup.mAncho)

Expand Down Expand Up @@ -444,7 +444,7 @@ Public Sub Superficie_Todo()

If frmConfigSup.MOSAICO.Value = vbChecked Then

Dim aux As Integer
Dim aux As Long

aux = Val(frmMain.cGrh.Text) + ((Y Mod frmConfigSup.mLargo) * frmConfigSup.mAncho) + (X Mod frmConfigSup.mAncho)
MapData(X, Y).Graphic(Val(frmMain.cCapas.Text)).GrhIndex = aux
Expand Down Expand Up @@ -1063,7 +1063,7 @@ Sub ClickEdit(Button As Integer, tX As Integer, tY As Integer)

If frmConfigSup.MOSAICO.Value = vbChecked Then

Dim aux As Integer
Dim aux As Long

Dim dy As Integer

Expand Down

0 comments on commit 8d96da0

Please sign in to comment.