Andrei Kortunov
7fc4c9f3f6
Avoid dead code
2021-01-09 13:52:01 +04:00
Andrei Kortunov
8084a336b5
Replace zeroes and nulls by nullptrs
2020-11-29 11:14:07 +04:00
Alexei Dobrohotov
53f91a3aa5
Merge pull request #3018 from akortunov/emplace
...
Use emplace_back instead of push_back
2020-11-01 01:58:56 +03:00
unknown
71e78c66cd
Re-add missing includes removed in 5a824d0333
2020-10-25 14:33:23 +01:00
Bret Curtis
5aa053c53e
components/compiler/streamerrorhandler.cpp needs sstream for MacOS
2020-10-23 00:13:51 +02:00
Bret Curtis
5a824d0333
components/compiler cleanup; also cleaned up related cascading warnings; fixed up final/override issues
2020-10-22 23:57:53 +02:00
Andrei Kortunov
065ed5138e
Use emplace_back instead of push_back
2020-10-18 10:27:35 +04:00
Andrei Kortunov
8ca3c3b123
Mark overrided methods by override keyword
2020-10-16 22:18:54 +04:00
fredzio
460e69e92a
Get rid of warning: dynamic exception specifications are deprecated
2020-10-10 12:12:55 +02:00
Capostrophic
e02b66cdf4
Ignore bogus string arguments for Disable/Enable again
2020-06-06 20:04:09 +03:00
Andrei Kortunov
5468fcb29f
Store attributes and skills values as floats (bug #4021 )
2020-06-03 17:34:15 +04:00
Capostrophic
e0ecbc08df
Give new opcodes to old functions made custom
2020-05-23 11:57:15 +03:00
Evil Eye
3875b837bc
make MenuMode, Random, GetSecondsPassed regular functions
2020-05-17 22:34:54 +02:00
Evil Eye
f0e2ee45fa
reuse ImplicitRef and ExplicitRef for enable, disable, getdisabled, startscript; move scriptrunning and stopscript
2020-05-13 21:17:08 +02:00
Evil Eye
8c433d587c
less complicated context override
2020-04-04 14:09:00 +02:00
Evil Eye
a16727d5e3
implement move constructor
2020-04-02 20:27:52 +02:00
Evil Eye
8958e29187
reset errorhandler context
2020-04-02 20:14:52 +02:00
Alexei Dobrohotov
4bb41a52bf
Merge pull request #2740 from Assumeru/empty-string
...
Ignore unterminated empty strings
2020-03-30 20:22:56 +03:00
Evil Eye
15a95add08
remove false positive
2020-03-29 22:40:22 +02:00
Evil Eye
e07fa37fa3
ignore final whitespace/comments
2020-03-29 22:29:22 +02:00
Evil Eye
fea7e68fe9
silence operator precedence warning
2020-03-25 20:34:08 +01:00
Evil Eye
8dc081a60d
ignore unterminated empty strings
2020-03-25 19:52:22 +01:00
elsid
7ae7cb181d
Support recast mesh rendering
2020-03-14 09:38:24 +01:00
Capostrophic
c1f1e367fa
Accept an extra numerical argument in GetItemCount
2020-03-11 20:56:46 +03:00
Andrei Kortunov
24ce242941
Implement TestCells (feature #5219 )
2019-12-22 11:13:42 +04:00
Andrei Kortunov
34873b6065
Fix dead code
2019-11-13 15:29:18 +04:00
Alexei Dobrohotov
a8843fa5a8
Make sure MultiChar::data() constructs a valid string
...
mData may ultimately not be a valid C-string (e.g. if it contains 4 significant characters) so it may not necessarily be converted into a valid std::string
2019-11-05 22:33:14 +03:00
Alexei Dobrohotov
9ab8d88753
Accept a bogus cell string argument for Position
2019-10-30 17:54:34 +03:00
Andrei Kortunov
45ab6e1430
Implement UTF-8 support for script parser (bug #4598 )
2019-10-30 14:59:47 +04:00
Alexei Dobrohotov
dc8e5f1d12
Accept redundant volume and pitch StopSound arguments
...
Exploited in Arktwend.
2019-10-29 18:51:58 +03:00
Alexei Dobrohotov
8bc2c1ac34
Make ForceGreeting ignore any extra argument
2019-10-29 14:39:21 +03:00
Roman Siromakha
4e5aec5c30
Merge pull request #2539 from Capostrophic/scripting
...
Try to parse strings as number literals (bug #5097 )
2019-10-24 22:12:50 +02:00
Capostrophic
bde4a38181
Cast Random result to float (bug #5175 )
2019-10-03 23:20:25 +03:00
Capostrophic
138a7ac434
Expression parser: Try to parse strings as number literals (bug #5097 )
2019-09-26 02:54:17 +03:00
capostrophic
8f2ed884a5
Allow usage of more keywords as string arguments (bug #5087 )
2019-09-06 19:12:08 +03:00
capostrophic
168e5050bb
Ignore an extra number argument in ModRegion (bug #5110 )
2019-08-01 20:48:58 +03:00
Alexei Dobrohotov
f984f61055
Ignore any fourth AITravel argument for now
2019-06-20 14:18:12 +03:00
Capostrophic
b7afb213ae
"Handle" RepairedOnMe scripting function (feature #4255 )
2019-06-03 02:17:32 +03:00
Capostrophic
95751ba671
Ignore extra numerical arguments for ForceGreeting, Position(Cell), PlaceItem(Cell)
2019-05-02 20:50:05 +03:00
Capostrophic
05727f2bcd
Ignore string arguments for AITravel, GetDynamic, LowerRank, RaiseRank
2019-05-02 20:50:05 +03:00
Bret Curtis
e0edecf1f2
Merge pull request #2341 from Capostrophic/scripting
...
Allow using functions in non-conditional expressions (bug #3725 )
2019-04-24 12:05:07 +02:00
Andrei Kortunov
bd2188a0f8
Use the logging system for compiler errors
2019-04-23 22:20:18 +04:00
Capostrophic
3d64a46df2
Allow using functions in non-conditional expressions (bug #3725 )
2019-04-22 20:37:32 +03:00
Capostrophic
6cbec4a688
Stray argument usage corrections
2019-04-19 21:28:06 +03:00
Andrei Kortunov
cae456a4aa
Merge pull request #2294 from Capostrophic/arguments
...
Ignore extra arguments to PlayLoopSound3D too
2019-03-30 08:18:39 +04:00
Capostrophic
7ef7555c19
Ignore extra arguments to PlayLoopSound3D too
2019-03-30 01:06:01 +03:00
Capostrophic
17dce28705
Improve compiler messages
2019-03-29 00:59:26 +03:00
Bret Curtis
6cbf1288ff
Merge pull request #1929 from Capostrophic/elseif
...
Ignore the rest of the line after else operator (bug #3006 )
2019-03-24 16:35:49 +01:00
Capostrophic
cbce1a1b7c
Ignore the rest of the line after else (bug #3006 )
2019-03-24 18:34:33 +03:00
Capostrophic
af47ec7756
Skip extra text after variable declaration (bug #4867 )
2019-03-21 17:00:40 +03:00