Sven Stucki
f5d76fbbcd
Catch all command line parsing errors, properly exit on --help
2016-09-06 20:11:54 +02:00
Sven Stucki
0847c85abd
Make --test work without --newgame, update help text
2016-09-06 20:11:53 +02:00
Sven Stucki
431e218a64
Use Boost to parse command line arguments ( #177 )
...
There are still some rough edges, first version to send in for
discussion.
2016-09-06 20:11:41 +02:00
Daniel Evans
243c3d7c4c
Merge pull request #232 from JayFoxRox/cheats
...
Cheat handler + Money display
2016-09-03 19:00:49 +01:00
Jannik Vogel
70f777c685
Zero-Pad displayed money value and slowly update it
2016-09-02 15:35:34 +02:00
Jannik Vogel
fd6be733e0
Use correct int-width in State block 16 and 17
2016-09-02 15:33:45 +02:00
Jannik Vogel
5f86003758
Add cheat handler
2016-09-02 15:33:45 +02:00
Daniel Evans
92b7f922b4
Merge pull request #230 from svenstucki/quit
...
Make sure SDL_Quit() is called on exit
2016-09-01 22:59:33 +01:00
Daniel Evans
341e0ca6bd
Merge pull request #227 from JayFoxRox/fix-debug
...
Fix debug-camera
2016-09-01 22:08:50 +01:00
Sven Stucki
449289c06a
Make sure SDL_Quit() is called on exit
2016-09-01 22:58:06 +02:00
Daniel Evans
95a0e31484
Merge pull request #222 from JayFoxRox/radar-blips
...
Coloured radar-blips and radardisc z-order
2016-09-01 21:00:28 +01:00
Jannik Vogel
c3c1c8781e
Adjust debug-camera speed
2016-09-01 02:56:47 +02:00
Jannik Vogel
4ac3bc185f
Fix debug-camera speed-modifier
2016-09-01 02:56:29 +02:00
Jannik Vogel
72a03fcdd6
Fix debug-camera undefined behaviour
2016-09-01 02:53:28 +02:00
Daniel Evans
3dca19f971
Merge pull request #216 from danhedron/handle-init-failure-1
...
Improve SDL & GL initialisation failure handling
2016-08-31 23:14:21 +01:00
Daniel Evans
789d76c76b
Merge pull request #226 from haphzd/mingw-fix-1
...
Fix mingw build
2016-08-31 23:06:48 +01:00
haphzd
ae75254848
Fix mingw build
2016-09-01 00:56:14 +03:00
Daniel Evans
904817cb9e
Merge pull request #221 from JayFoxRox/hide-objects
...
Script: Implement opcode_0363 (Object visibility)
2016-08-31 22:08:25 +01:00
Daniel Evans
53a77d26ed
Merge pull request #220 from Mischa-Alff/tobj
...
Fixes #219 : Take TOBJ data into account when building render lists
2016-08-31 22:07:50 +01:00
Jannik Vogel
1e265b0e9c
Script: Correct colour/size for location-radar-blips
2016-08-31 00:28:58 +02:00
Jannik Vogel
270b0ce8be
Script: Correct colour/size for object-radar-blips
2016-08-31 00:28:58 +02:00
Jannik Vogel
635d10abfa
Script: Implement 0188
2016-08-31 00:28:58 +02:00
Jannik Vogel
6117be689d
Script: Support MarkerOnly in 018B
2016-08-31 00:23:02 +02:00
Jannik Vogel
2fdde9a94f
Draw colored radar-blips
2016-08-31 00:23:02 +02:00
Jannik Vogel
c379c5d5e4
Extend BlipData with colour/size
2016-08-31 00:23:02 +02:00
Jannik Vogel
7d96f28ab9
Seperate radar blip setup and drawing
2016-08-31 00:23:02 +02:00
Jannik Vogel
d9e202faba
MapRenderer::draw cleanup
2016-08-31 00:23:02 +02:00
Jannik Vogel
10dba6dbf3
Use a triangle-fan for radar-sprites (allows outline drawing)
2016-08-31 00:23:02 +02:00
Jannik Vogel
de62bd2bd9
Only draw arrow-markers which are not hidden
2016-08-31 00:23:02 +02:00
Jannik Vogel
e99cfd3979
Only draw radar-blips which are not hidden
2016-08-31 00:23:02 +02:00
Jannik Vogel
2d3a8856da
Draw blips after radar-north and player-marker
2016-08-31 00:23:02 +02:00
Jannik Vogel
e2a27711b2
Script: Implement opcode_0363
2016-08-31 00:12:38 +02:00
Daniel Evans
90243b17a7
Merge pull request #207 from danhedron/feature/generate-script-functions
...
Generate script functions
2016-08-30 20:08:35 +01:00
Daniel Evans
cd0f15bdb9
Use plain references for Local and Global script types
2016-08-30 19:57:47 +01:00
Daniel Evans
23752c33fa
Fix post-mission cleanup: actually destroy objects
2016-08-30 19:57:47 +01:00
Daniel Evans
34bdfbacfa
Remove old script modules
2016-08-30 19:57:47 +01:00
Daniel Evans
609790674a
Use new GTA3Module
2016-08-30 19:57:47 +01:00
Daniel Evans
51cd277610
Implement various object related opcodes
2016-08-30 19:57:38 +01:00
Daniel Evans
0dd292ba28
Implement text opcodes
2016-08-30 19:56:41 +01:00
Daniel Evans
6f8364a9e8
Implement game opcodes
2016-08-30 19:56:39 +01:00
Daniel Evans
4aea8cc6aa
Implement arithmetic opcodes
2016-08-30 19:51:25 +01:00
Daniel Evans
4344bf40c3
Implement VM opcodes
2016-08-30 19:51:25 +01:00
Daniel Evans
e6c62d15e5
Add generated stubs from script interface descriptions
2016-08-30 19:51:19 +01:00
Daniel Evans
d25c1a45a6
Add Script interfaces to support generated functions
2016-08-30 19:46:59 +01:00
Daniel Evans
498057e423
Add script to generate stubs from script interfaces
2016-08-30 19:46:44 +01:00
Mischa Aster Alff
a56b25d4cd
Change default object timeOff from 0 to 24
...
Remove now-useless check in ObjectRenderer
2016-08-28 14:32:34 +02:00
Mischa Aster Alff
397e8ecba8
Take TOBJ data into account when building render lists
2016-08-28 14:25:03 +02:00
Daniel Evans
47d654854e
Remove SetWindowGrab to allow dismissing the error dialog
...
If an error occurs while the game is running, the window grabbing input
focus would prevent the mouse from being able to click on "OK".
Since SetRelativeMouseMode already warps the cursor for us we don't
need to grab the input.
2016-08-27 00:40:10 +01:00
Daniel Evans
95481c6d2e
Catch fatal exceptions and show an error dialog
...
We also print to stderr, but sometimes stderr is unavailable so we should
show a dialog.
2016-08-25 23:32:30 +01:00
Daniel Evans
0a0d2a188f
Hide window until we are done creating a context
2016-08-25 20:40:25 +01:00