Skip to content
This repository has been archived by the owner on Oct 11, 2019. It is now read-only.

Commit

Permalink
HOTFIX 4.0.1
Browse files Browse the repository at this point in the history
Fix app hanging when loading mod without profile
Fix flag editor setting the wrong flag when undefined/system flags are
shown
  • Loading branch information
Leo40Git committed Apr 8, 2018
1 parent 8a1ae72 commit 946f567
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
4.0
4.0.1
HOTFIX 4.0.1:
- Fix app hanging when loading mod without profile
- Fix flag editor setting the wrong flag when undefined/system flags are shown
Update 4.0 - The Awaited Update:
- The map preview will now display entities from the PIXEL bitmap! Thanks to 20kdc for basically writing this feature
- Added a "Search for Save Point" tool which allows you to jump to any save point
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/leo/cse/frontend/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class Main extends JFrame implements ExeLoadListener, ProfileListener {
public static final Logger LOGGER = LogManager.getLogger("CSE");

public static final Dimension WINDOW_SIZE = new Dimension(870, 734);
public static final Version VERSION = new Version("4.0");
public static final Version VERSION = new Version("4.0.1");
public static final String UPDATE_CHECK_SITE = "https://raw.githubusercontent.com/Leo40Git/CaveSaveEdit/master/.version";
public static final String DOWNLOAD_SITE = "https://github.com/Leo40Git/CaveSaveEdit/releases/";
public static final Color COLOR_BG = new Color(0, 0, 25);
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/leo/cse/frontend/ui/SaveEditorPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -1208,6 +1208,7 @@ public void onEvent(String event, String loadName, int loadId, int loadIdMax) {
case ExeData.EVENT_POSTLOAD:
progLoad.active = false;
progSubload.active = false;
loading = false;
break;
default:
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,10 @@ public void onClick(int x, int y, boolean shiftDown, boolean ctrlDown) {
int fy = 28;
for (Flag flag : shownFlags) {
int id = flag.getId();
if (!isFlagValid(id))
if (!isFlagValid(id)) {
fy += 24;
continue;
}
if (FrontUtils.pointInRectangle(x, y, fx, fy, 16, 16)) {
boolean value = (boolean) ProfileManager.getField(NormalProfile.FIELD_FLAGS, id);
ProfileManager.setField(NormalProfile.FIELD_FLAGS, id, !value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,10 @@ public void onClick(int x, int y, boolean shiftDown, boolean ctrlDown) {
int fy = 28;
for (MapFlag flag : shownFlags) {
int id = flag.getId();
if (!isMapFlagValid(id))
if (!isMapFlagValid(id)) {
fy += 24;
continue;
}
if (FrontUtils.pointInRectangle(x, y, fx, fy, 16, 16)) {
boolean value = (boolean) ProfileManager.getField(NormalProfile.FIELD_MAP_FLAGS, id);
ProfileManager.setField(NormalProfile.FIELD_MAP_FLAGS, id, !value);
Expand Down

0 comments on commit 946f567

Please sign in to comment.