Loïc Guilloux
|
845b894fd8
|
Remove: [Script] random_deviation from setting description table (#12221)
|
2024-03-05 12:41:04 +01:00 |
Patric Stout
|
849fd5ae03
|
Change: [Script] replace easy/medium/hard values with default value (#11959)
|
2024-02-03 09:15:03 +00:00 |
Loïc Guilloux
|
4e26e33805
|
Change: Improve ScriptSettings windows (#11958)
|
2024-02-02 18:08:05 +00:00 |
Patric Stout
|
e28edf6945
|
Remove: [Script] CONFIG_RANDOM from AddSetting flags (#11942)
It had a very weird interaction, and was only ever used by a single
AI.
|
2024-01-31 22:24:36 +00:00 |
Rubidium
|
2ae7367024
|
Codechange: replace StrMakeValidInPlace with StrValid
|
2023-06-08 18:29:44 +02:00 |
Rubidium
|
62fda0f505
|
Codechange: remove manual allocation/free for SQ_instance
|
2023-05-14 22:54:10 +02:00 |
Rubidium
|
ab51175db2
|
Codechange: use std::string for script config
|
2023-05-14 22:54:10 +02:00 |
Rubidium
|
48825e1a8e
|
Codechange: rewrite script string-to-settings conversion to C++
|
2023-05-14 22:54:10 +02:00 |
Rubidium
|
e035705239
|
Codechange: introduce and use std::string variant of sq_throwerror
|
2023-05-14 22:54:10 +02:00 |
Rubidium
|
1ae7eb1594
|
Codechange: use std::map over SmallMap and std::string of stredup(char*)
|
2023-05-09 23:14:48 +02:00 |
Rubidium
|
19ec4e8beb
|
Codechange: replace ClampToI32/U16 with ClampTo<int32_t/uint16_t>
|
2023-05-06 21:26:13 +02:00 |
SamuXarick
|
8351b97f52
|
Add: [Script] Labels for negative values of a setting
|
2023-02-21 00:28:21 +01:00 |
SamuXarick
|
7b1fd3e37f
|
Fix #10059: [Script] Clamp config item values to int32
Also prevent random_deviation to be below 0.
|
2023-02-21 00:28:21 +01:00 |
Patric Stout
|
7713c3e3cc
|
Codechange: move casting a "const char *" to "char *" to the caller
It is not nice to have your definition say you won't change a value
while in fact the whole reason for your existance is to change it.
|
2021-05-29 16:23:59 +02:00 |
Patric Stout
|
ca9a7df752
|
Codechange: rename str_validate to StrMakeValid(InPlace) (#9304)
This to be more explicit the function changes the value, and not
returns yes/no.
|
2021-05-29 11:21:38 +02:00 |
Michael Lutz
|
b408fe77f7
|
Codechange: Use std::string in file scanners.
|
2020-12-27 13:19:25 +01:00 |
Patric Stout
|
f66baa444f
|
Codechange: use C++11 constructs for for-each loops (#8432)
|
2020-12-25 19:38:18 +01:00 |
S. D. Cloudt
|
13cc8a0cee
|
Cleanup: Removed SVN headers
|
2019-11-10 17:59:20 +00:00 |
Henry Wilson
|
7c8e7c6b6e
|
Codechange: Use null pointer literal instead of the NULL macro
|
2019-04-10 23:22:20 +02:00 |
Henry Wilson
|
ab711e6942
|
Codechange: Replaced SmallVector::[Begin|End]() with std alternatives
|
2019-03-26 20:15:57 +00:00 |
rubidium
|
7c4e9dd71d
|
(svn r26771) -Cleanup: remove OTTD2SQ and SQ2OTTD
|
2014-09-06 17:30:33 +00:00 |
rubidium
|
9ed12b0f07
|
(svn r26509) -Codechange: replace strdup with stredup (the latter ensures the return is not NULL)
|
2014-04-25 15:40:32 +00:00 |
rubidium
|
5b82822c12
|
(svn r26486) -Codechange: replace a number of snprintfs with seprintf
|
2014-04-23 21:12:09 +00:00 |
rubidium
|
0463dbdc9e
|
(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
|
2014-04-23 20:13:33 +00:00 |
rubidium
|
4c443bce5c
|
(svn r25555) -Fix [FS#5632]: [Script] Texts from scripts were not validated before they were shown, causing an assertion to trigger
|
2013-07-04 16:36:47 +00:00 |
frosch
|
812ae4140a
|
(svn r24789) -Add: Separate setting to control the default settings of newly added scripts and random AIs.
|
2012-12-05 19:36:04 +00:00 |
frosch
|
a499435351
|
(svn r24786) -Codechange: Add SettingsProfile enum for difficulty profiles and highscore tables.
|
2012-12-05 19:34:45 +00:00 |
frosch
|
be0b94400d
|
(svn r24317) -Feature: Add dropdowns to AI configurations, if all values have labels.
|
2012-06-01 15:19:59 +00:00 |
truebrain
|
4505edbd47
|
(svn r23365) -Codechange: move constants to a single place, to avoid duplication (and in time, different values)
|
2011-11-29 23:26:44 +00:00 |
truebrain
|
34d7f01ccc
|
(svn r23364) -Codechange: refactor AIConfig, moving it mostly to Scriptconfig
|
2011-11-29 23:26:35 +00:00 |
truebrain
|
e37149a1de
|
(svn r23362) -Codechange: refactor AIScanner, splitting it in AIScannerInfo and AIScannerLibrary
|
2011-11-29 23:21:52 +00:00 |
truebrain
|
b927ae5be9
|
(svn r23263) -Documentation: stop naming AI in comments in script/ files; it makes no sense
|
2011-11-19 15:50:10 +00:00 |
rubidium
|
7fd1e1df81
|
(svn r23198) -Codechange: introduce a free that takes const pointers so we don't need to cast to void/non-const before being able to free
|
2011-11-12 13:00:29 +00:00 |
rubidium
|
62777dbd84
|
(svn r22905) -Fix [FS#4753] (r22836): the name of the tar was removed from the AI filenames, so record it differently. Also removes some of the hackery to get the tar's filename
|
2011-09-08 09:55:04 +00:00 |
rubidium
|
090d6fb8b7
|
(svn r21311) -Fix [FS#4260]: AIs in an infinite loop in e.g. autosave, but also getting settings and such from info.nut, would not be interrupted after a while causing OpenTTD to seem to not respond
|
2010-11-24 17:00:37 +00:00 |
rubidium
|
30f2afac9b
|
(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers
|
2010-08-26 22:01:16 +00:00 |
rubidium
|
7fbc33dae1
|
(svn r17248) -Fix: add GPL license notice where appropriate
|
2009-08-21 20:21:05 +00:00 |
yexo
|
a91ff2d5e8
|
(svn r16093) -Feature [FS#2808]: Add GetURL() as possible function to info.nut. If AIs implement it, that url is shown when the AI crashes and also in the AI selection window.
|
2009-04-19 15:14:23 +00:00 |
yexo
|
ce4744e1d6
|
(svn r15736) -Codechange: Split AIScanner/AIFileInfo to the more generic classes ScriptScanner/ScriptFileInfo.
|
2009-03-15 22:41:57 +00:00 |