mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-01 20:12:50 +02:00
fix many more uninitialized variables
This commit is contained in:
@@ -183,7 +183,8 @@ GameView::GameView():
|
|||||||
screenshotIndex(0),
|
screenshotIndex(0),
|
||||||
recordingIndex(0),
|
recordingIndex(0),
|
||||||
toolTipPresence(0),
|
toolTipPresence(0),
|
||||||
currentSaveType(0)
|
currentSaveType(0),
|
||||||
|
lastLogEntry(0.0f)
|
||||||
{
|
{
|
||||||
|
|
||||||
int currentX = 1;
|
int currentX = 1;
|
||||||
|
@@ -4783,9 +4783,22 @@ Simulation::~Simulation()
|
|||||||
delete tools[i];
|
delete tools[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
Simulation::Simulation()
|
Simulation::Simulation():
|
||||||
|
sys_pause(0),
|
||||||
|
framerender(0),
|
||||||
|
aheat_enable(0),
|
||||||
|
legacy_enable(0),
|
||||||
|
gravityMode(0),
|
||||||
|
edgeMode(0),
|
||||||
|
water_equal_test(0),
|
||||||
|
pretty_powder(0),
|
||||||
|
sandcolour_frame(0),
|
||||||
|
emp_decor(0),
|
||||||
|
lighting_recreate(0),
|
||||||
|
force_stacking_check(0),
|
||||||
|
ISWIRE(0),
|
||||||
|
VINE_MODE(0)
|
||||||
{
|
{
|
||||||
|
|
||||||
int tportal_rx[] = {-1, 0, 1, 1, 1, 0,-1,-1};
|
int tportal_rx[] = {-1, 0, 1, 1, 1, 0,-1,-1};
|
||||||
int tportal_ry[] = {-1,-1,-1, 0, 1, 1, 1, 0};
|
int tportal_ry[] = {-1,-1,-1, 0, 1, 1, 1, 0};
|
||||||
|
|
||||||
@@ -4819,15 +4832,6 @@ Simulation::Simulation()
|
|||||||
pv = air->pv;
|
pv = air->pv;
|
||||||
hv = air->hv;
|
hv = air->hv;
|
||||||
|
|
||||||
sys_pause = 0;
|
|
||||||
framerender = 0;
|
|
||||||
pretty_powder = 0;
|
|
||||||
sandcolour_frame = 0;
|
|
||||||
aheat_enable = 0;
|
|
||||||
legacy_enable = 0;
|
|
||||||
VINE_MODE = 0;
|
|
||||||
water_equal_test = 0;
|
|
||||||
|
|
||||||
int menuCount;
|
int menuCount;
|
||||||
menu_section * msectionsT = LoadMenus(menuCount);
|
menu_section * msectionsT = LoadMenus(menuCount);
|
||||||
memcpy(msections, msectionsT, menuCount * sizeof(menu_section));
|
memcpy(msections, msectionsT, menuCount * sizeof(menu_section));
|
||||||
|
Reference in New Issue
Block a user