From cd7cc317b56dfc610d3849a92acc2bfa735b2862 Mon Sep 17 00:00:00 2001 From: Info Teddy Date: Thu, 23 Jan 2020 06:43:53 -0800 Subject: [PATCH] Up the trinkets/crewmates limit to 100 2.2 will handle this just fine, because there are 100 slots allocated for trinkets and crewmates, and it will save and load all 100 slots just fine. Except, it only resets the first 20 slots when starting a level from the beginning, but that's minor and already fixed in 2.3 anyway. This commit makes it so you can now place up to one hundred trinkets and crewmates in the editor. --- desktop_version/src/editor.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/desktop_version/src/editor.cpp b/desktop_version/src/editor.cpp index f7134031..4be20b40 100644 --- a/desktop_version/src/editor.cpp +++ b/desktop_version/src/editor.cpp @@ -4996,7 +4996,7 @@ void editorinput( KeyPoll& key, Graphics& dwgfx, Game& game, mapclass& map, enti { if(ed.drawmode==3) { - if(ed.numtrinkets<20) + if(ed.numtrinkets<100) { addedentity(ed.tilex+ (ed.levx*40),ed.tiley+ (ed.levy*30),9); ed.lclickdelay=1; @@ -5004,7 +5004,7 @@ void editorinput( KeyPoll& key, Graphics& dwgfx, Game& game, mapclass& map, enti } else { - ed.note="ERROR: Max number of trinkets is 20"; + ed.note="ERROR: Max number of trinkets is 100"; ed.notedelay=45; } } @@ -5091,7 +5091,7 @@ void editorinput( KeyPoll& key, Graphics& dwgfx, Game& game, mapclass& map, enti } else if(ed.drawmode==15) //Crewmate { - if(ed.numcrewmates<20) + if(ed.numcrewmates<100) { addedentity(ed.tilex+ (ed.levx*40),ed.tiley+ (ed.levy*30),15,1 + int(fRandom() * 5)); ed.lclickdelay=1; @@ -5099,7 +5099,7 @@ void editorinput( KeyPoll& key, Graphics& dwgfx, Game& game, mapclass& map, enti } else { - ed.note="ERROR: Max number of crewmates is 20"; + ed.note="ERROR: Max number of crewmates is 100"; ed.notedelay=45; } }