Loading
#openttdcoop - Paste
Archives
Trending
Docs
Login
Paste #pr2xjzcwr
Show paste
Index: src/ai/ai_core.cpp
===================================================================
--- src/ai/ai_core.cpp
(
revision 27553
)
+++ src/ai/ai_core.cpp
(
working copy
)
@@ -62,6 +62,7 @@
Paste #peaytjfok
Show paste
Index: src/ai/ai_gui.cpp
===================================================================
--- src/ai/ai_gui.cpp
(
revision 27553
)
+++ src/ai/ai_gui.cpp
(
working copy
)
@@ -675,8 +675,7 @@
Paste #pquxtgg4d
Show paste
Index: src/ai/ai_gui.cpp
===================================================================
--- src/ai/ai_gui.cpp
(
revision 27553
)
+++ src/ai/ai_gui.cpp
(
working copy
)
@@ -675,8 +675,7 @@
Paste #p3ijo1zqa
Show paste
1
>------ Rebuild All started: Project: strgen, Configuration: Debug Win32 ------
2
>------ Rebuild All started: Project: settingsgen, Configuration: Debug Win32 ------
3
>------ Rebuild All started: Project: version, Configuration: Debug Win32 ------
4
>------ Skipped Rebuild All: Project: generate, Configuration: Debug Win32 ------
4
>Project not selected to build for this solution configuration
Paste #pw76e1mhk
Show paste
dbg:
[
net
]
[
core
]
starting network...
dbg:
[
net
]
[
core
]
loading windows socket library
dbg:
[
net
]
[
udp
]
initializing listeners
dbg:
[
net
]
[
core
]
network online, multiplayer available
dbg:
[
net
]
Detected broadcast addresses:
Paste #ppwusiqlh
Show paste
template template_train20px(x,y){
//left_x, upper_y, width, height, offset_x, offset_y
[ x, y, 8, 17, -3, -9]
[ x+10, y, 15, 15, -8, -8]
[ x+27, y, 20, 12, -5, -7]
Paste #p0fa4wfj6
Show paste
Index: langs_vs100.vcxproj
===================================================================
--- langs_vs100.vcxproj
(
revision 27553
)
+++ langs_vs100.vcxproj
(
working copy
)
@@ -317,6 +317,12 @@
Paste #pubtbpno1
Show paste
# Use glob syntax:
syntax: glob
# The local makefile should be ignored:
Makefile.local
Paste #pqvhmf0bu
Show paste
English.txt:
# AI configuration window
STR_AI_CONFIG_CAPTION :{WHITE}AI/Game Script {STRING}
STR_AI_CONFIG_CAPTION_CONFIGURATION :Configuration
STR_AI_CONFIG_CAPTION_SETTINGS :Settings
Paste #pcutdxwf1
Show paste
/**
* Check whether a script, be it AI or GS, is dead in this slot.
* @note Also returns dead for AI slots which are currently occupied
* by Human Companies or when the AI didn't start.
* @note Also returns dead when no GS was set up.
Paste #pna6tfy4s
Show paste
/* old code */
static
bool
IsDead
(
CompanyID slot
)
{
if
(
slot
==
OWNER_DEITY
)
{
return
Game
::
GetInstance
(
)
==
NULL
||
Game
::
GetInstance
(
)
-
>
IsDead
(
)
;
Paste #pkbvssddy
Show paste
/**
* Check whether a Game Script is not running, or if it is running, if it is dead.
* Check whether an AI slot is not started, or if it is started, it is not an AI, or if it is an AI, if it is dead.
* @param slot The slot that is checked.
* @return true if the slot that is checked is dead.
Paste #pkxkubyo7
Show paste
Index: src/ai/ai_core.cpp
===================================================================
--- src/ai/ai_core.cpp
(
revision 27551
)
+++ src/ai/ai_core.cpp
(
working copy
)
@@ -62,6 +62,7 @@
Paste #plqlru8ut
Show paste
/** My Code, I want IsDead compatible with the 3 structs */
static
bool
IsDead
(
CompanyID slot
)
{
if
(
slot
==
OWNER_DEITY
)
{
return
Game
::
GetInstance
(
)
-
>
IsDead
(
)
;
Paste #powbjkea0
Show paste
/**
* Window to configure which AIs will start.
*/
struct
AIConfigWindow
:
public
Window
{
CompanyID selected_slot
;
///< The currently selected AI slot or \c INVALID_COMPANY.
«
1
2
...
77
78
79
80
81
82
83
...
133
134
»