Commit Graph

388 Commits

Author SHA1 Message Date
Joseph-Eugene Winzer
392db4ed33 SUPERNOVA: Fixes formatting 2018-03-11 23:25:00 +01:00
Joseph-Eugene Winzer
61fb88ef20 SUPERNOVA: Removes TODO for quitGameDialog() 2018-03-11 23:25:00 +01:00
Joseph-Eugene Winzer
7fab63f297 SUPERNOVA: Recenters animated text on loop 2018-03-11 23:25:00 +01:00
Joseph-Eugene Winzer
78e4a162ab SUPERNOVA: Removes unused function 2018-03-11 23:25:00 +01:00
Joseph-Eugene Winzer
53af82785e SUPERNOVA: Substitues constant strings 2018-03-11 23:25:00 +01:00
Joseph-Eugene Winzer
bb9bfcba4a SUPERNOVA: Encapsulates GuiElement
It simplifies the overloaded functions for renderBox/Text and saveScreen
2018-03-11 23:25:00 +01:00
Joseph-Eugene Winzer
7f5cea54e3 SUPERNOVA: Implements original quit prompt 2018-03-11 23:25:00 +01:00
Joseph-Eugene Winzer
a38db245ed SUPERNOVA: Fixes formatting
Because of confusion when indentation level is raised and thus tabs or
spaces should be used when aligning code, this commit switches to tabs
to avoid any further confusion.
2018-03-11 23:25:00 +01:00
Joseph-Eugene Winzer
0770800844 SUPERNOVA: Removes Console commands
Most of them were for debugging only anyway and commands like `giveall`
actually broke parts of the game (and didn't even give you all items).
2018-03-11 23:25:00 +01:00
Joseph-Eugene Winzer
3ec7c1f905 SUPERNOVA: Implements animated text during in/outro 2018-03-11 23:25:00 +01:00
Joseph-Eugene Winzer
0274dca40b SUPERNOVA: Appends NULL terminator to strings
The NULL terminator is needed during parsing.
2018-03-11 23:25:00 +01:00
Joseph-Eugene Winzer
316817dc96 SUPERNOVA: Removes unused variable 2018-03-11 23:25:00 +01:00
Thierry Crozat
b5df2f8ec7 SUPERNOVA: Add strings for quit game prompt 2018-02-23 23:51:39 +00:00
Thierry Crozat
713d13e7ad SUPERNOVA: Mark intentional fallthrough in switch 2018-01-31 21:09:10 +00:00
Thierry Crozat
4c857e1706 SUPERNOVA: Fix incorrect sanity check for debug command
This was reported by coverity (CID 1385537).
2018-01-31 20:58:02 +00:00
Thierry Crozat
bab0bf2b1e SUPERNOVA: Improve command button size for translations 2018-01-31 20:45:31 +00:00
Thierry Crozat
2ba8ef9dc0 SUPERNOVA: Ensure the GuiElement _text field is null terminated
This was reported by coverity (CID 1385566), and althought this was
unlikely to happen, it was not impossible (due to the translations).
2018-01-30 22:06:03 +00:00
Thierry Crozat
13324efb7f SUPERNOVA: Fix out of bound access when exiting the engine while in a dialog
This was reported by coverity (CID 1385572).
2018-01-30 21:48:20 +00:00
Joseph-Eugene Winzer
ccd4e20e32 SUPERNOVA: Fixes destruction of SoundSample buffer 2018-01-23 02:15:47 +00:00
Joseph-Eugene Winzer
26b5522463 SUPERNOVA: Adds ModeList 2018-01-23 02:15:47 +00:00
Thierry Crozat
eafd739c66 SUPERNOVA: Improve waiting until a sound has finished playing 2018-01-23 02:15:47 +00:00
Thierry Crozat
ac609c91db SUPERNOVA: Make _event a local variable 2018-01-23 02:15:47 +00:00
Thierry Crozat
2a8cf41b33 SUPERNOVA: Handle RTL and Quit while editing text 2018-01-23 02:15:47 +00:00
Thierry Crozat
d12b182450 SUPERNOVA: Remove declaration for unimplemented and unused function 2018-01-23 02:15:47 +00:00
Thierry Crozat
ba51c37a5c SUPERNOVA: Fix cursor not shown if escaping during the intro snoring sequence 2018-01-23 02:15:47 +00:00
Thierry Crozat
963ad97e2a SUPERNOVA: Fix missing reset of object CARRIED flag when clearing inventory 2018-01-23 02:15:47 +00:00
Joseph-Eugene Winzer
dd6df76b32 SUPERNOVA: Initializes RandomSource on stack 2018-01-23 02:15:46 +00:00
Joseph-Eugene Winzer
b937268e61 SUPERNOVA: Renames INT32_MAX to kMaxTimerValue
Prevents collision with stdint.h INT32_MAX
2018-01-23 02:15:46 +00:00
Joseph-Eugene Winzer
32e8d22c14 SUPERNOVA: Corrects header guard name 2018-01-23 02:15:46 +00:00
Joseph-Eugene Winzer
b8b0ae57cc SUPERNOVA: Fixes AudioStream leak 2018-01-23 02:15:46 +00:00
Joseph-Eugene Winzer
d68ce6dc07 SUPERNOVA: Changes array to seperate variables 2018-01-23 02:15:46 +00:00
Joseph-Eugene Winzer
e40a017962 SUPERNOVA: Fixes segfault if dat file not found 2018-01-23 02:15:46 +00:00
Joseph-Eugene Winzer
c0f47712c2 SUPERNOVA: Changes message order
When taking off your helmet or life support in a room without oxygen, it
showed the death screen before the 'taking off helmet/life support'
message.
2018-01-23 02:15:46 +00:00
Joseph-Eugene Winzer
fa1e93a15e SUPERNOVA: Removes global constructor call
Object() is redundant anyway as it instantiates an Object object and
copies it to nullObject, which was already default constructed.
2018-01-23 02:15:46 +00:00
Joseph-Eugene Winzer
da3d145819 SUPERNOVA: Moves strings to GameManager class 2018-01-23 02:15:46 +00:00
Joseph-Eugene Winzer
6fe9af93f3 SUPERONVA: Sets uninitialized values to 0 2018-01-23 02:15:46 +00:00
Joseph-Eugene Winzer
8d79bbad9b SUPERNOVA: Removes comment
renderRoom() and later in the game loop executeRoom() does everything
that is explicitly called in the original.
2018-01-23 02:15:46 +00:00
Joseph-Eugene Winzer
f5c2271ffd SUPERNOVA: Prevents paletteFadeIn() to be triggered 2018-01-23 02:15:45 +00:00
Joseph-Eugene Winzer
43709a59f3 SUPERNOVA: Reverts brightness change
If the brightness is 0, it is faded in at the end of the game loop.
In some instances, especially cutscenes, it makes the code harder to
understand as in somecases the code expects the brightness to be faded
in after having it faded out, set manually to 0 or when you leave a dark
room, set by roomBrightness().
Removing it now, would just lead to more confusion during the port of
Supernova part 2.
2018-01-23 02:15:45 +00:00
Joseph-Eugene Winzer
45b2c4ea28 SUPERNOVA: Hides cursor during snoring sequence 2018-01-23 02:15:45 +00:00
Joseph-Eugene Winzer
40b39b2b6d SUPERNOVA: Aborts intro if game should be closed 2018-01-23 02:15:45 +00:00
Joseph-Eugene Winzer
1fd7ea7c39 SUPERNOVA: Fixes object state update
In order to trigger a mouseField change in processInput(), we move the
cursor to 0,0 first before restoring its original position.
2018-01-23 02:15:45 +00:00
Joseph-Eugene Winzer
f3f75da959 SUPERNOVA: Pushes a mousemove to update object state
If you click on an exit on the map and there is again an exit on the
same spot, it won't be recognized until the next mouse move/click.
This change fakes a mouse move and thus updates the object state.
2018-01-23 02:15:45 +00:00
Joseph-Eugene Winzer
6df88c5c46 SUPERNOVA: Fixes fading in intro 2018-01-23 02:15:45 +00:00
Joseph-Eugene Winzer
509edfd539 SUPERNOVA: Returns to launcher after outro 2018-01-23 02:15:45 +00:00
Joseph-Eugene Winzer
063962a583 SUPERNOVA: Updates palette when changing room brightness 2018-01-23 02:15:45 +00:00
Joseph-Eugene Winzer
d69480b52e SUPERNOVA: Renames audio constants 2018-01-23 02:15:45 +00:00
Joseph-Eugene Winzer
7ba9d94a89 SUPERNOVA: Renames audio constants 2018-01-23 02:15:45 +00:00
Joseph-Eugene Winzer
c1f6d41ce0 SUPERNOVA: Fixes outro cutscene 2018-01-23 02:15:45 +00:00
Joseph-Eugene Winzer
3ae3ee6978 SUPERNOVA: Fixes inventory scrolling
Correctly moves inventory view when items are added/removed/cleared
2018-01-23 02:15:44 +00:00