Browse Source

Make changes that Silas needed to not crash

master
Luna 7 years ago
parent
commit
2685a8cb69
2 changed files with 4 additions and 0 deletions
  1. +3
    -0
      scripts/heroes/5_portal.gd
  2. +1
    -0
      scripts/player.gd

+ 3
- 0
scripts/heroes/5_portal.gd View File

@ -2,6 +2,7 @@ extends "res://scripts/placeable.gd"
var portal_charge = -5
var other
var index
var enemy_colors = [
Color("#d14013"),
@ -24,6 +25,8 @@ func _exit_tree():
other.queue_free()
func init(maker):
index = maker.placement.placed.size()
# If index is odd, we're the second (1, 3...), if even, first (0, 4...)
var second = index % 2 != 0


+ 1
- 0
scripts/player.gd View File

@ -54,6 +54,7 @@ func _ready():
if is_network_master():
get_node("TPCamera/Camera/Ray").add_exception(self)
get_node(tp_camera).set_enabled(true)
get_node(tp_camera).cam_view_sensitivity = 0.05
spawn()
if "is_ai" in player_info and player_info.is_ai and not ai_instanced:
add_child(preload("res://scenes/ai.tscn").instance())


Loading…
Cancel
Save