Skip to content

Commit

Permalink
Merge branch 'main' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
afwbkbc committed Feb 15, 2025
2 parents 4571c93 + 6248772 commit ffe61ce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions GLSMAC_data/default/main_legacy.gls.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ return ((gm) => {

gm.on('start', (e) => {

#print('GM ON START');

let players = [];
let players_sz = 0;
let random_player = () => {
Expand Down Expand Up @@ -48,8 +46,6 @@ return ((gm) => {

e.game.on('configure', (e) => {

#print('E GAME ON CONFIGURE');

units.configure(e.game);
resources.configure(e.game.rm);

Expand Down
2 changes: 0 additions & 2 deletions GLSMAC_data/default/resources.gls.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ const result = {

configure: (rm) => {

#print('CONFIGURING RM');

define(rm, 'Nutrients', 304, 13);
define(rm, 'Minerals', 345, 36);
define(rm, 'Energy', 386, 59);
Expand Down
4 changes: 3 additions & 1 deletion src/gse/context/GlobalContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ const std::string& GlobalContext::GetSourceLine( const size_t line_num ) const {
return m_source_lines.at( line_num - 1 );
}

static const si_t s_empty_si = {};
const si_t& GlobalContext::GetSI() const {
THROW( "global contexts are not supposed to have si" );
//THROW( "global contexts are not supposed to have si" ); // for some reason this gets thrown at Release builds but not Debug
return s_empty_si;
}

const Context::script_info_t& GlobalContext::GetScriptInfo() const {
Expand Down

0 comments on commit ffe61ce

Please sign in to comment.