211
211
Game* game_construct_copy (GType object_type, Game* game) {
212
212
Game* self = NULL;
217
Player* _tmp4_ = NULL;
219
Player* _tmp6_ = NULL;
222
224
g_return_val_if_fail (game != NULL, NULL);
223
225
self = (Game*) g_type_create_instance (object_type);
224
_tmp0_ = game_get_width (self);
226
_tmp2_ = game_get_height (self);
228
_tmp4_ = g_new0 (Player, _tmp1_ * _tmp3_);
227
_tmp1_ = game_get_width (_tmp0_);
230
_tmp4_ = game_get_height (_tmp3_);
232
_tmp6_ = g_new0 (Player, _tmp2_ * _tmp5_);
229
233
self->tiles = (g_free (self->tiles), NULL);
230
self->tiles = _tmp4_;
231
self->tiles_length1 = _tmp1_;
232
self->tiles_length2 = _tmp3_;
234
self->tiles = _tmp6_;
235
self->tiles_length1 = _tmp2_;
236
self->tiles_length2 = _tmp5_;
252
_tmp9_ = game_get_width (self);
254
if (!(_tmp8_ < _tmp10_)) {
256
_tmp11_ = game_get_width (self);
258
if (!(_tmp10_ < _tmp12_)) {
269
gint _tmp17__length1;
270
gint _tmp17__length2;
275
gint _tmp21__length1;
276
gint _tmp21__length2;
273
gint _tmp19__length1;
274
gint _tmp19__length2;
279
gint _tmp23__length1;
280
gint _tmp23__length2;
289
_tmp15_ = game_get_height (self);
291
if (!(_tmp14_ < _tmp16_)) {
293
_tmp17_ = game_get_height (self);
295
if (!(_tmp16_ < _tmp18_)) {
294
_tmp17_ = self->tiles;
295
_tmp17__length1 = self->tiles_length1;
296
_tmp17__length2 = self->tiles_length2;
300
_tmp21_ = _tmp20_->tiles;
301
_tmp21__length1 = _tmp20_->tiles_length1;
302
_tmp21__length2 = _tmp20_->tiles_length2;
305
_tmp24_ = _tmp21_[(_tmp22_ * _tmp21__length2) + _tmp23_];
306
_tmp17_[(_tmp18_ * _tmp17__length2) + _tmp19_] = _tmp24_;
307
_tmp25_ = _tmp17_[(_tmp18_ * _tmp17__length2) + _tmp19_];
298
_tmp19_ = self->tiles;
299
_tmp19__length1 = self->tiles_length1;
300
_tmp19__length2 = self->tiles_length2;
304
_tmp23_ = _tmp22_->tiles;
305
_tmp23__length1 = _tmp22_->tiles_length1;
306
_tmp23__length2 = _tmp22_->tiles_length2;
309
_tmp26_ = _tmp23_[(_tmp24_ * _tmp23__length2) + _tmp25_];
310
_tmp19_[(_tmp20_ * _tmp19__length2) + _tmp21_] = _tmp26_;
311
_tmp27_ = _tmp19_[(_tmp20_ * _tmp19__length2) + _tmp21_];
339
_tmp31_ = _tmp30_->priv->undo_index;
340
if (!(_tmp29_ < _tmp31_)) {
343
_tmp33_ = _tmp32_->priv->undo_index;
344
if (!(_tmp31_ < _tmp33_)) {
346
_tmp35_ = _tmp33_->priv->undo_history[_tmp34_];
347
self->priv->undo_history[_tmp32_] = _tmp35_;
348
_tmp36_ = self->priv->undo_history[_tmp32_];
350
_tmp37_ = _tmp35_->priv->undo_history[_tmp36_];
351
self->priv->undo_history[_tmp34_] = _tmp37_;
352
_tmp38_ = self->priv->undo_history[_tmp34_];
353
_tmp38_ = _tmp37_->priv->undo_index;
354
self->priv->undo_index = _tmp38_;
356
_tmp40_ = _tmp39_->current_color;
357
self->current_color = _tmp40_;
357
_tmp40_ = _tmp39_->priv->undo_index;
358
self->priv->undo_index = _tmp40_;
360
_tmp42_ = _tmp41_->current_color;
361
self->current_color = _tmp42_;