@@ -224,7 +224,7 @@ static int celestia_show(lua_State* l)
224224
225225 int argc = lua_gettop (l);
226226 uint64_t flags = 0 ;
227- auto &RenderFlagMap = appCore->scriptMaps ()-> RenderFlagMap ;
227+ auto &RenderFlagMap = appCore->scriptMaps (). RenderFlagMap ;
228228 for (int i = 2 ; i <= argc; i++)
229229 {
230230 string renderFlag = Celx_SafeGetString (l, i, AllErrors, " Arguments to celestia:show() must be strings" );
@@ -248,7 +248,7 @@ static int celestia_hide(lua_State* l)
248248
249249 int argc = lua_gettop (l);
250250 uint64_t flags = 0 ;
251- auto &RenderFlagMap = appCore->scriptMaps ()-> RenderFlagMap ;
251+ auto &RenderFlagMap = appCore->scriptMaps (). RenderFlagMap ;
252252 for (int i = 2 ; i <= argc; i++)
253253 {
254254 string renderFlag = Celx_SafeGetString (l, i, AllErrors, " Arguments to celestia:hide() must be strings" );
@@ -303,9 +303,9 @@ static int celestia_setrenderflags(lua_State* l)
303303 {
304304 appCore->setLightDelayActive (value);
305305 }
306- else if (appCore->scriptMaps ()-> RenderFlagMap .count (key) > 0 )
306+ else if (appCore->scriptMaps (). RenderFlagMap .count (key) > 0 )
307307 {
308- uint64_t flag = appCore->scriptMaps ()-> RenderFlagMap [key];
308+ uint64_t flag = appCore->scriptMaps (). RenderFlagMap [key];
309309 if (value)
310310 renderFlags |= flag;
311311 else
@@ -331,7 +331,7 @@ static int celestia_getrenderflags(lua_State* l)
331331 const uint64_t renderFlags = appCore->getRenderer ()->getRenderFlags ();
332332 std::string rfmString;
333333 rfmString.reserve (FlagMapNameLength);
334- for (const auto & rfm : appCore->scriptMaps ()-> RenderFlagMap )
334+ for (const auto & rfm : appCore->scriptMaps (). RenderFlagMap )
335335 {
336336 rfmString.clear ();
337337 rfmString.append (rfm.first );
@@ -440,7 +440,7 @@ static int celestia_showlabel(lua_State* l)
440440
441441 int argc = lua_gettop (l);
442442 int flags = 0 ;
443- auto &LabelFlagMap = appCore->scriptMaps ()-> LabelFlagMap ;
443+ auto &LabelFlagMap = appCore->scriptMaps (). LabelFlagMap ;
444444 for (int i = 2 ; i <= argc; i++)
445445 {
446446 string labelFlag = Celx_SafeGetString (l, i, AllErrors, " Arguments to celestia:showlabel() must be strings" );
@@ -462,7 +462,7 @@ static int celestia_hidelabel(lua_State* l)
462462
463463 int argc = lua_gettop (l);
464464 int flags = 0 ;
465- auto &LabelFlagMap = appCore->scriptMaps ()-> LabelFlagMap ;
465+ auto &LabelFlagMap = appCore->scriptMaps (). LabelFlagMap ;
466466 for (int i = 2 ; i <= argc; i++)
467467 {
468468 string labelFlag = Celx_SafeGetString (l, i, AllErrors, " Arguments to celestia:hidelabel() must be strings" );
@@ -488,7 +488,7 @@ static int celestia_setlabelflags(lua_State* l)
488488 }
489489
490490 int labelFlags = appCore->getRenderer ()->getLabelMode ();
491- auto &LabelFlagMap = appCore->scriptMaps ()-> LabelFlagMap ;
491+ auto &LabelFlagMap = appCore->scriptMaps (). LabelFlagMap ;
492492 lua_pushnil (l);
493493 while (lua_next (l, -2 ) != 0 )
494494 {
@@ -540,7 +540,7 @@ static int celestia_getlabelflags(lua_State* l)
540540 const int labelFlags = appCore->getRenderer ()->getLabelMode ();
541541 std::string lfmString;
542542 lfmString.reserve (FlagMapNameLength);
543- for (const auto & lfm : appCore->scriptMaps ()-> LabelFlagMap )
543+ for (const auto & lfm : appCore->scriptMaps (). LabelFlagMap )
544544 {
545545 lfmString.clear ();
546546 lfmString.append (lfm.first );
@@ -563,7 +563,7 @@ static int celestia_setorbitflags(lua_State* l)
563563
564564 int orbitFlags = appCore->getRenderer ()->getOrbitMask ();
565565 lua_pushnil (l);
566- auto &BodyTypeMap = appCore->scriptMaps ()-> BodyTypeMap ;
566+ auto &BodyTypeMap = appCore->scriptMaps (). BodyTypeMap ;
567567 while (lua_next (l, -2 ) != 0 )
568568 {
569569 string key;
@@ -612,7 +612,7 @@ static int celestia_getorbitflags(lua_State* l)
612612 const int orbitFlags = appCore->getRenderer ()->getOrbitMask ();
613613 std::string btmString;
614614 btmString.reserve (FlagMapNameLength);
615- for (const auto & btm : appCore->scriptMaps ()-> BodyTypeMap )
615+ for (const auto & btm : appCore->scriptMaps (). BodyTypeMap )
616616 {
617617 btmString.clear ();
618618 btmString.append (btm.first );
@@ -772,7 +772,7 @@ static int celestia_setoverlayelements(lua_State* l)
772772
773773 auto overlayElements = appCore->getOverlayElements ();
774774 lua_pushnil (l);
775- const auto &OverlayElementMap = appCore->scriptMaps ()-> OverlayElementMap ;
775+ const auto &OverlayElementMap = appCore->scriptMaps (). OverlayElementMap ;
776776 while (lua_next (l, -2 ) != 0 )
777777 {
778778 string key;
@@ -821,7 +821,7 @@ static int celestia_getoverlayelements(lua_State* l)
821821 const auto overlayElements = appCore->getOverlayElements ();
822822 std::string oemString;
823823 oemString.reserve (FlagMapNameLength);
824- for (const auto & oem : appCore->scriptMaps ()-> OverlayElementMap )
824+ for (const auto & oem : appCore->scriptMaps (). OverlayElementMap )
825825 {
826826 oemString.clear ();
827827 oemString.append (oem.first );
@@ -878,7 +878,7 @@ static int celestia_setlabelcolor(lua_State* l)
878878 Color* color = nullptr ;
879879 string key;
880880 key = lua_tostring (l, 2 );
881- auto &LabelColorMap = this_celestia (l)->scriptMaps ()-> LabelColorMap ;
881+ auto &LabelColorMap = this_celestia (l)->scriptMaps (). LabelColorMap ;
882882 if (LabelColorMap.count (key) == 0 )
883883 {
884884 GetLogger ()->warn (" Unknown label style: {}\n " , key);
@@ -910,7 +910,7 @@ static int celestia_getlabelcolor(lua_State* l)
910910 string key = Celx_SafeGetString (l, 2 , AllErrors, " Argument to celestia:getlabelcolor() must be a string" );
911911
912912 Color* labelColor = nullptr ;
913- auto &LabelColorMap = this_celestia (l)->scriptMaps ()-> LabelColorMap ;
913+ auto &LabelColorMap = this_celestia (l)->scriptMaps (). LabelColorMap ;
914914 if (LabelColorMap.count (key) == 0 )
915915 {
916916 GetLogger ()->error (" Unknown label style: {}\n " , key);
@@ -938,7 +938,7 @@ static int celestia_setlinecolor(lua_State* l)
938938 Color* color = nullptr ;
939939 string key;
940940 key = lua_tostring (l, 2 );
941- auto &LineColorMap = this_celestia (l)->scriptMaps ()-> LineColorMap ;
941+ auto &LineColorMap = this_celestia (l)->scriptMaps (). LineColorMap ;
942942 if (LineColorMap.count (key) == 0 )
943943 {
944944 GetLogger ()->warn (" Unknown line style: {}\n " , key);
@@ -969,7 +969,7 @@ static int celestia_getlinecolor(lua_State* l)
969969 Celx_CheckArgs (l, 2 , 2 , " One argument expected for celestia:getlinecolor()" );
970970 string key = Celx_SafeGetString (l, 2 , AllErrors, " Argument to celestia:getlinecolor() must be a string" );
971971
972- auto &LineColorMap = this_celestia (l)->scriptMaps ()-> LineColorMap ;
972+ auto &LineColorMap = this_celestia (l)->scriptMaps (). LineColorMap ;
973973 if (LineColorMap.count (key) == 0 )
974974 {
975975 GetLogger ()->error (" Unknown line style: {}\n " , key);
0 commit comments