Comments (6)
Variable sizes are defined as MA[2][4] and MANNED[2]. This puts MANNED[0] == 9, which is just a count populated from Data->P[plr].Mission[mis].Men;
from raceintospace.
Maybe some bounds/sanity checking above this to trap this sort of thing.
from raceintospace.
Maybe we should have a game_state_sanity_check()
function which runs assert()
s on as many things as we can imagine. Then we pepper calls to this all over: each return to the port screen, start of turn, saving, loading, etc.
from raceintospace.
A perfect place for:
// Verify that the version of the library that we linked against is
// compatible with the version of the headers we compiled against.
GOOGLE_PROTOBUF_VERIFY_VERSION;
from raceintospace.
Reviewing this, I'm pretty sure the problem was this issue.
This issue has two parts:
- The sudden change in mission step execution, and
- The segfault caused by the bad
Manned[0]
value
The second part is exactly the problem caused by #200. As for the weird mission ordering, I suspect the pAry overflow is also the issue - after MANNED[]
it would eventually overflow into STEP. Also possible is that modifying MANNED[]
created its own out-of-range issues that compounded the chaos - such as an MA[][]
out-of-range access into Mev
.
Until someone else can reproduce the problem, I'm closing this.
from raceintospace.
Ryan, thank you! I love that you've managed to close one of our old Issues. I'd sure like to clear some of those out.
from raceintospace.
Related Issues (20)
- Help item for Launch Confirmation? HOT 1
- Docking Module at 62% HOT 6
- Space History icons HOT 5
- Bring back small screens in Mission Control? HOT 1
- Update Help files for menus HOT 2
- Return Injured recruits to Basic Training
- Additional keyboard shortcuts at spaceport?
- Awkwardness in Crew Assignment
- Have mission scheduled for one pad switch to another if pad destroyed? HOT 2
- Time for the release of 2.0? HOT 1
- Should this blow up the pad? HOT 3
- Make pad pictures links to the pad view?
- Button to send all astronauts to program HOT 3
- Add Home, End, PgUp, PgDn functionality to Astronaut Complex
- Retiring astronauts are not shown in menus HOT 7
- Astronauts may not get morale boost for a mission HOT 1
- Morale bonus for successful space flight HOT 1
- Hero medal for first woman in space HOT 3
- No music in the game on new install HOT 3
- Old domain still in code HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raceintospace.