Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help with a line that keeps crashing #80

Open
BishopBatman opened this issue Aug 10, 2024 · 1 comment
Open

Help with a line that keeps crashing #80

BishopBatman opened this issue Aug 10, 2024 · 1 comment

Comments

@BishopBatman
Copy link

BishopBatman commented Aug 10, 2024

Hi, can anyone change this line without crashing the game? I'm unsuccessfully trying to change the word 'Gun' on line:

https://github.com/benmwebb/dopewars/blob/develop/src/gui_client/optdialog.c#L945

Same with the word 'Cop' on line:

https://github.com/benmwebb/dopewars/blob/develop/src/gui_client/optdialog.c#L950

Appreciate any help!
IMG_7786

@benmwebb
Copy link
Owner

I'm pretty sure these are just used to look up the corresponding global variables, so if you changed "Gun" there you'd also have to change all of the corresponding globals, at https://github.com/benmwebb/dopewars/blob/develop/src/dopewars.c#L585-L603

Otherwise, the lookup will fail triggering this assertion:
https://github.com/benmwebb/dopewars/blob/develop/src/gui_client/optdialog.c#L680

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants