Interrupt / Interrupt/systemshock

Weapon cheating is working incorrectly.

Open
#362 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
900
Forks
77
Avg merge
2d 2h
Merged PRs (30d)
1

Description

As discovered in #360, cheating for weapons (`CTRL+2`) results in some problems. These problems are:

* Weapons obtained with cheating cannot be removed from the inventory.
* They use ammo clips of inappropriate type (see screenshot. Rail gun + Mag carts. What?)
* Sometimes it can crash the game (#265). It was fixed, but the fix affects normal gameplay (as reported in #360).

![20200421_09h10m57s_grim](https://user-images.githubusercontent.com/812069/79832325-dab58280-83b1-11ea-9d03-fef2cc1d01c1.png)

The code which causes problems is in `src/GameSrc/hkeyfunc.c` in `toggle_giveall_func()`.

Is there any ideas how to fix it?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.