Commit Graph

53 Commits

Author SHA1 Message Date
rubidium
3b606aa46a (svn r24970) -Fix [FS#5346]: crash when infinite loop occured during loading a script 2013-02-05 20:52:28 +00:00
frosch
f72366db3f (svn r24928) -Fix [FS#5408]: [Squirrel] Update line information before processing 'while' token of 'do'-'while' statement. 2013-01-20 17:23:08 +00:00
rubidium
2d31ee7382 (svn r24153) -Fix [FS#5160]: [Squirrel] Crash when trying to create an array with negative size 2012-04-18 19:22:32 +00:00
rubidium
a2f09d617b (svn r23962) -Fix [FS#5068]: [Script] Infinite recursion within a script wasn't caught properly, so they could cause crashes of OpenTTD instead of the AI 2012-02-17 21:49:53 +00:00
rubidium
a90ad57763 (svn r23870) -Fix [FS#5004]: scripts with a bad comparator could lock up OpenTTD 2012-01-29 14:27:21 +00:00
yexo
9d92eefbc9 (svn r23801) -Fix: reading the utf-8 BOM from AI/GS files on big-endian machines failed 2012-01-15 11:31:34 +00:00
truebrain
aa1a0053b0 (svn r23640) -Fix: stop using FORCEINLINE (1/3rd of the instances were, the others were still regular inline), but make sure inline is always a 'forced' inline (I am looking at you MSVC) 2011-12-20 17:57:56 +00:00
yexo
27988c78fb (svn r23496) -Fix: [Squirrel] Provide a proper error message when the _cmp meta-function doesn't return an integer 2011-12-11 15:52:18 +00:00
truebrain
fa07d61b84 (svn r23383) -Update: bring Squirrel to 2.2.5; besides some nice bug fixes, it mostly solves the sort() issues 2011-12-01 12:03:20 +00:00
rubidium
3053d8e3b5 (svn r23194) -Codechange: don't cast away const needlessly 2011-11-12 08:26:30 +00:00
rubidium
a46be19d86 (svn r23190) -Fix: compile error due to Squirrel define messing up another included file 2011-11-11 18:59:47 +00:00
yexo
ea2aee17d3 (svn r23187) -Fix (r23186): MSVC allowed non-const where const was mandatory 2011-11-10 20:07:14 +00:00
yexo
4da846abe2 (svn r23186) -Fix [FS#4830]: [Squirrel] replace custom qsort by std::sort to fix stack overflow 2011-11-10 19:40:49 +00:00
terkhen
c30ff054f6 (svn r22490) -Fix [FS#4623]: [Squirrel] Fix compilation under MinGW-w64. (JGR) 2011-05-25 16:35:23 +00:00
smatz
f761b7249c (svn r22481) -Fix: compilation with recent GCC 2011-05-21 08:40:50 +00:00
yexo
45c46ce522 (svn r22055) -Fix [FS#4490]: [Squirrel] some invalid squirrel code caused the squirrel compiler to crash 2011-02-11 06:18:39 +00:00
rubidium
489c169291 (svn r20162) -Fix [FS#3954]: integer comparison failed in case the difference was more than "MAX_UINT"/2 2010-07-16 17:42:58 +00:00
yexo
1e2733d2ac (svn r19166) -Change: don't print the absolute path to AI script files in the AI debug window, use the relative path from /ai/ instead 2010-02-20 13:28:56 +00:00
frosch
a2d9e85336 (svn r18832) -Fix: some indentation whitespace. 2010-01-16 20:51:35 +00:00
rubidium
36df94ddb0 (svn r18769) -Codechange: replace MiniLZO with the real library. If you're using MSVC update openttd-useful, otherwise make sure you've got liblzo2 and it's development files installed. 2010-01-10 13:12:34 +00:00
rubidium
687d0739ee (svn r18639) -Update: Squirrel from 2.2.3 to 2.2.4
-Revert (r17273): this fix is included in Squirrel 2.2.4
2009-12-26 09:59:32 +00:00
rubidium
a2a336b585 (svn r18025) -Fix (r17217): more missing/extra parentheses (for compilers I've never heard of) 2009-11-08 23:56:39 +00:00
rubidium
a6eb65c06b (svn r18024) -Fix (r17217): missing ( 2009-11-08 22:24:33 +00:00
smatz
c82d2a1fa6 (svn r17883) -Codechange: little cleaning in md5.cpp and md5.h 2009-10-26 23:03:03 +00:00
rubidium
982b8ee5fc (svn r17693) -Cleanup: remove some unneeded includes 2009-10-04 17:16:41 +00:00
rubidium
79f6fde5bf (svn r17515) -Fix [FS#3189]: [Squirrel] In some cases the call stack would not be cleaned up properly during crash handling. Occasionally this causes asserts to be triggered or crashes. 2009-09-12 20:31:41 +00:00
yexo
f38bb4cdb5 (svn r17499) -Fix (r17498): remove 2 unused functions so some compilers stop warning about them 2009-09-10 23:14:21 +00:00
yexo
f922a7ca8e (svn r17498) -Add [NoAI]: Enable the squirrel std math library 2009-09-10 20:19:12 +00:00
rubidium
791a308730 (svn r17403) -Fix [Squirrel]: guard against squirrel stack overflows; if assert is enabled assert (catch possible overflow bugs in nightlies/RCs), otherwise just increase the stack's size (don't get into invalid reads/writes in releases) 2009-09-03 11:48:08 +00:00
rubidium
aa67dd87c6 (svn r17284) -Fix [Squirrel]: stack was not always cleared properly with tail recursion 2009-08-25 15:09:27 +00:00
yexo
650f36c08c (svn r17283) -Cleanup [Squirrel]: remove a few unneeded changes to squirrel code 2009-08-25 12:47:50 +00:00
yexo
fe4f55d0a4 (svn r17282) -Fix (r17195): the squirrel documentation files were not updated 2009-08-25 11:43:05 +00:00
yexo
f66041e3c8 (svn r17273) -Fix [Squirrel]: calling a function that has default parameters with not enough parameters can cause a crash 2009-08-23 19:25:52 +00:00
rubidium
be9033295e (svn r17247) -Change: move '3rd party' MD5 implementation also to the 3rdparty directory. 2009-08-21 20:15:17 +00:00
rubidium
5efd5f1f68 (svn r17243) -Fix (r17216): undo 'damage' by svn:keywords 2009-08-20 19:54:03 +00:00
yexo
6b0520b3b4 (svn r17230) -Fix (r15027): don't assert when an AI uses AI*Mode objects incorrectly but crash the AI instead 2009-08-20 10:39:39 +00:00
yexo
c22f60c812 (svn r17223) -Change [NoAI] [FS#2980]: Crash an AI when it uses a DoCommand / Sleep instead of just printing an error message in the AI Debug Window 2009-08-19 16:14:15 +00:00
glx
ae691ae28b (svn r17218) -Fix (r17216): missing '(' causing compile error 2009-08-18 23:08:16 +00:00
rubidium
2568643418 (svn r17217) -Fix (r17216): silence some warnings for the more exotic GCC-alikes 2009-08-18 22:51:43 +00:00
rubidium
5e40d05c51 (svn r17216) -Update: MiniLZO from 1.08 to 2.03. 2009-08-18 22:26:38 +00:00
rubidium
48e1a54c58 (svn r17212) -Change: move minilzo to its 'own' 3rdparty directory as it belongs there 2009-08-18 17:49:28 +00:00
yexo
2b2093a469 (svn r17195) -Update: squirrel to 2.2.3 stable 2009-08-15 21:21:52 +00:00
yexo
76b077ce25 (svn r16534) -Fix [Squirrel] [FS#2942]: fix crash that occured when an AI was halted while one or more generators were still in a 'running' state 2009-06-07 20:20:22 +00:00
yexo
1c754c75d6 (svn r16532) -Fix [Squirrel]: Don't copy an object when we just checked that the pointer to it is NULL 2009-06-07 15:54:37 +00:00
yexo
1df82e9702 (svn r16509) -Fix (r16502): All Sleep/DoCommand calls failed instead of only those via a call/acall/pcall function 2009-06-03 15:59:26 +00:00
yexo
62a698df32 (svn r16502) -Fix [FS#2935]: when an AI was suspended while in a function called (indirectly) via call/acall/pcall OpenTTD crashed. Fix this by disallowing AIs to be suspended while called via call/acall/pcall.
IMPORTANT FOR AI WRITERS: AIs can no longer call any DoCommand functions (change anything, build vehicles, etc.) in a function called (indirectly) via call/acall/pcall. Where possible, please rewrite your code so it doesn't use call/acall/pcall
2009-06-01 22:00:47 +00:00
yexo
5357fa2467 (svn r16454) -Fix (r16181, r16241): fix the try/catch bug fixed in r16181 and reintroduced in r16241 again, this time without breaking the regression test. 2009-05-27 23:59:51 +00:00
rubidium
d39f442bd0 (svn r16434) -Cleanup: remove some dead code; primarily stuff that can't be reached like break after returns or break after functions that never return (i.e. NOT_REACHED) 2009-05-26 15:46:24 +00:00
rubidium
2832d69272 (svn r16422) -Codechange: use const_cast for removing const and warn when const is (accidentally?) removed using C-style casts. 2009-05-24 21:09:00 +00:00
rubidium
7ffb421add (svn r16241) -Fix (r16181): regression failing due to wrongly initialised amount of traps 2009-05-06 13:42:31 +00:00