Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void __thiscall Algae(Algae *this,int shipId)
- {
- int *piVar1;
- int iVar2;
- long local_18 [2];
- Spreadable((Spreadable *)this,100,shipId);
- (this->super_Spreadable).super_Repairable.super_Selectable._vptr_Selectable =
- (anon_subr_int_for__vptr_Selectable **)0x7722d0;
- (this->super_Spreadable).super_Repairable.super_ShipObject._vptr_ShipObject =
- (anon_subr_int_for__vptr_ShipObject **)0x7723e0;
- this->fDeathTimer = -1.00000000;
- this->fStartTimer = 0.00000000;
- this->fOxygen = 100.00000000;
- basic_string((char *)local_18,(allocator *)"Algae");
- assign((basic_string_char_std__char_traits_char__std__allocator_char__ *)
- &(this->super_Spreadable).super_Repairable.name,(basic_string *)local_18);
- if (&DAT_ffffffffffffffe8 + local_18[0] != _S_empty_rep_storage) {
- piVar1 = (int *)(local_18[0] + -8);
- LOCK();
- iVar2 = *piVar1;
- *piVar1 = *piVar1 + -1;
- if (iVar2 < 1) {
- _ZNSs4_Rep10_M_destroyERKSaIcE(&DAT_ffffffffffffffe8 + local_18[0]);
- }
- }
- return;
- }
- ----------------------------------------------------------------------------------------
- void __thiscall Fire(Fire *this,int shipId)
- {
- int *piVar1;
- int iVar2;
- long local_18 [2];
- Spreadable((Spreadable *)this,100,shipId);
- this->fDeathTimer = -1.00000000;
- (this->fireAnimation).tracker.currentDelay = -1.00000000;
- (this->super_Spreadable).super_Repairable.super_Selectable._vptr_Selectable =
- (anon_subr_int_for__vptr_Selectable **)0x774a90;
- (this->super_Spreadable).super_Repairable.super_ShipObject._vptr_ShipObject =
- (anon_subr_int_for__vptr_ShipObject **)0x774ba0;
- this->fStartTimer = 0.00000000;
- this->fOxygen = 100.00000000;
- //-snip-
- //Lots of fire & smoke animation-related stuff here, cut for better readability
- //-snip-
- this->bWasOnFire = false;
- basic_string((char *)local_18,(allocator *)&DAT_007724c7);
- assign((basic_string_char_std__char_traits_char__std__allocator_char__ *)
- &(this->super_Spreadable).super_Repairable.name,(basic_string *)local_18);
- if (&DAT_ffffffffffffffe8 + local_18[0] != _S_empty_rep_storage) {
- piVar1 = (int *)(local_18[0] + -8);
- LOCK();
- iVar2 = *piVar1;
- *piVar1 = *piVar1 + -1;
- if (iVar2 < 1) {
- _ZNSs4_Rep10_M_destroyERKSaIcE(&DAT_ffffffffffffffe8 + local_18[0]);
- }
- }
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment