@@ -61,7 +61,7 @@ namespace OpenXcom
6161 * @param base Pointer to the base to get info from.
6262 * @param globe Pointer to the Geoscape globe.
6363 */
64- BasescapeState::BasescapeState (Game *game, Base *base, Globe *globe) : State(game), _base(base), _globe(globe)
64+ BasescapeState::BasescapeState (Base *base, Globe *globe) : _base(base), _globe(globe)
6565{
6666 // Create objects
6767 _txtFacility = new Text (192 , 9 , 0 , 0 );
@@ -268,7 +268,7 @@ void BasescapeState::btnNewBaseClick(Action *)
268268{
269269 Base *base = new Base (_game->getRuleset ());
270270 _game->popState ();
271- _game->pushState (new BuildNewBaseState (_game, base, _globe, false ));
271+ _game->pushState (new BuildNewBaseState (base, _globe, false ));
272272}
273273
274274/* *
@@ -277,7 +277,7 @@ void BasescapeState::btnNewBaseClick(Action *)
277277 */
278278void BasescapeState::btnBaseInfoClick (Action *)
279279{
280- _game->pushState (new BaseInfoState (_game, _base, this ));
280+ _game->pushState (new BaseInfoState (_base, this ));
281281}
282282
283283/* *
@@ -286,7 +286,7 @@ void BasescapeState::btnBaseInfoClick(Action *)
286286 */
287287void BasescapeState::btnSoldiersClick (Action *)
288288{
289- _game->pushState (new SoldiersState (_game, _base));
289+ _game->pushState (new SoldiersState (_base));
290290}
291291
292292/* *
@@ -295,7 +295,7 @@ void BasescapeState::btnSoldiersClick(Action *)
295295 */
296296void BasescapeState::btnCraftsClick (Action *)
297297{
298- _game->pushState (new CraftsState (_game, _base));
298+ _game->pushState (new CraftsState (_base));
299299}
300300
301301/* *
@@ -304,7 +304,7 @@ void BasescapeState::btnCraftsClick(Action *)
304304 */
305305void BasescapeState::btnFacilitiesClick (Action *)
306306{
307- _game->pushState (new BuildFacilitiesState (_game, _base, this ));
307+ _game->pushState (new BuildFacilitiesState (_base, this ));
308308}
309309
310310/* *
@@ -313,7 +313,7 @@ void BasescapeState::btnFacilitiesClick(Action *)
313313 */
314314void BasescapeState::btnResearchClick (Action *)
315315{
316- _game->pushState (new ResearchState (_game, _base));
316+ _game->pushState (new ResearchState (_base));
317317}
318318
319319/* *
@@ -322,7 +322,7 @@ void BasescapeState::btnResearchClick(Action *)
322322 */
323323void BasescapeState::btnManufactureClick (Action *)
324324{
325- _game->pushState (new ManufactureState (_game, _base));
325+ _game->pushState (new ManufactureState (_base));
326326}
327327
328328/* *
@@ -331,7 +331,7 @@ void BasescapeState::btnManufactureClick(Action *)
331331 */
332332void BasescapeState::btnPurchaseClick (Action *)
333333{
334- _game->pushState (new PurchaseState (_game, _base));
334+ _game->pushState (new PurchaseState (_base));
335335}
336336
337337/* *
@@ -340,7 +340,7 @@ void BasescapeState::btnPurchaseClick(Action *)
340340 */
341341void BasescapeState::btnSellClick (Action *)
342342{
343- _game->pushState (new SellState (_game, _base));
343+ _game->pushState (new SellState (_base));
344344}
345345
346346/* *
@@ -349,7 +349,7 @@ void BasescapeState::btnSellClick(Action *)
349349 */
350350void BasescapeState::btnTransferClick (Action *)
351351{
352- _game->pushState (new TransferBaseState (_game, _base));
352+ _game->pushState (new TransferBaseState (_base));
353353}
354354
355355/* *
@@ -373,16 +373,16 @@ void BasescapeState::viewLeftClick(Action *)
373373 // Is facility in use?
374374 if (fac->inUse ())
375375 {
376- _game->pushState (new ErrorMessageState (_game, " STR_FACILITY_IN_USE" , _palette, Palette::blockOffset (15 )+1 , " BACK13.SCR" , 6 ));
376+ _game->pushState (new ErrorMessageState (tr ( " STR_FACILITY_IN_USE" ) , _palette, Palette::blockOffset (15 )+1 , " BACK13.SCR" , 6 ));
377377 }
378378 // Would base become disconnected?
379379 else if (!_base->getDisconnectedFacilities (fac).empty ())
380380 {
381- _game->pushState (new ErrorMessageState (_game, " STR_CANNOT_DISMANTLE_FACILITY" , _palette, Palette::blockOffset (15 )+1 , " BACK13.SCR" , 6 ));
381+ _game->pushState (new ErrorMessageState (tr ( " STR_CANNOT_DISMANTLE_FACILITY" ) , _palette, Palette::blockOffset (15 )+1 , " BACK13.SCR" , 6 ));
382382 }
383383 else
384384 {
385- _game->pushState (new DismantleFacilityState (_game, _base, _view, fac));
385+ _game->pushState (new DismantleFacilityState (_base, _view, fac));
386386 }
387387 }
388388}
@@ -396,47 +396,47 @@ void BasescapeState::viewRightClick(Action *)
396396 BaseFacility *f = _view->getSelectedFacility ();
397397 if (f == 0 )
398398 {
399- _game->pushState (new BaseInfoState (_game, _base, this ));
399+ _game->pushState (new BaseInfoState (_base, this ));
400400 }
401401 else if (f->getRules ()->getCrafts () > 0 )
402402 {
403403 if (f->getCraft () == 0 )
404404 {
405- _game->pushState (new CraftsState (_game, _base));
405+ _game->pushState (new CraftsState (_base));
406406 }
407407 else
408408 for (size_t craft = 0 ; craft < _base->getCrafts ()->size (); ++craft)
409409 {
410410 if (f->getCraft () == _base->getCrafts ()->at (craft))
411411 {
412- _game->pushState (new CraftInfoState (_game, _base, craft));
412+ _game->pushState (new CraftInfoState (_base, craft));
413413 break ;
414414 }
415415 }
416416 }
417417 else if (f->getRules ()->getStorage () > 0 )
418418 {
419- _game->pushState (new SellState (_game, _base));
419+ _game->pushState (new SellState (_base));
420420 }
421421 else if (f->getRules ()->getPersonnel () > 0 )
422422 {
423- _game->pushState (new SoldiersState (_game, _base));
423+ _game->pushState (new SoldiersState (_base));
424424 }
425425 else if (f->getRules ()->getPsiLaboratories () > 0 && Options::anytimePsiTraining && _base->getAvailablePsiLabs () > 0 )
426426 {
427- _game->pushState (new AllocatePsiTrainingState (_game, _base));
427+ _game->pushState (new AllocatePsiTrainingState (_base));
428428 }
429429 else if (f->getRules ()->getLaboratories () > 0 )
430430 {
431- _game->pushState (new ResearchState (_game, _base));
431+ _game->pushState (new ResearchState (_base));
432432 }
433433 else if (f->getRules ()->getWorkshops () > 0 )
434434 {
435- _game->pushState (new ManufactureState (_game, _base));
435+ _game->pushState (new ManufactureState (_base));
436436 }
437437 else if (f->getRules ()->getAliens () > 0 )
438438 {
439- _game->pushState (new ManageAlienContainmentState (_game, _base, OPT_GEOSCAPE ));
439+ _game->pushState (new ManageAlienContainmentState (_base, OPT_GEOSCAPE ));
440440 }
441441 else if (f->getRules ()->isLift () || f->getRules ()->getRadarRange () > 0 )
442442 {
0 commit comments