Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Menu
Open sidebar
Armagetron Advanced
Armagetron Advanced
Commits
f1a258f6
Commit
f1a258f6
authored
Nov 14, 2021
by
Manuel Moos
Browse files
Merge from legacy_0.2.8.3
parents
f4aab7d1
0c4687db
Pipeline
#408517422
passed with stages
in 12 minutes and 52 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/tools/tConfiguration.cpp
View file @
f1a258f6
...
...
@@ -1074,13 +1074,23 @@ void tConfItemLine::ReadVal(std::istream &s){
void
tConfItemLine
::
WriteVal
(
std
::
ostream
&
s
){
tConfItem
<
tString
>::
WriteVal
(
s
);
// double trailing backslash so it is read back as a single backslash, not
// a continued line (HACK: this would actually be the job of the calling function)
if
(
target
->
Len
()
>=
2
&&
target
->
operator
()(
target
->
Len
()
-
2
)
==
'\\'
)
s
<<
"
\\
"
;
// slow, but correct: escape special characters on the fly
int
len
=
target
->
Len
();
for
(
int
i
=
0
;
i
<
len
;
++
i
)
{
char
c
=
(
*
target
)[
i
];
switch
(
c
)
{
case
0
:
continue
;
case
'\\'
:
case
'\''
:
case
'"'
:
case
' '
:
s
<<
'\\'
;
}
s
<<
c
;
}
}
tConfItemFunc
::
tConfItemFunc
...
...
src/tron/gCycle.cpp
View file @
f1a258f6
...
...
@@ -2812,7 +2812,10 @@ bool gCycle::Timestep(REAL currentTime){
{
sn_ConsoleOut
(
"0xff7777Admin : 0xffff77BUG had to kill a cycle because it lagged behind in the simulation. Probably the invulnerability bug. Investigate!
\n
"
);
st_Breakpoint
();
KillAt
(
pos
);
if
(
Vulnerable
()
)
KillAt
(
pos
);
else
Kill
();
ret
=
false
;
}
#endif
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment