Initialize an editor viewer object Returns 1 if ok, 0 if error
| 950 | // Initialize an editor viewer object |
| 951 | // Returns 1 if ok, 0 if error |
| 952 | int ObjInitViewer(object *objp) { |
| 953 | // Set size & shields |
| 954 | objp->size = 5.0; |
| 955 | objp->shields = 0; |
| 956 | // Set up various info |
| 957 | SetObjectControlType(objp, CT_NONE); |
| 958 | objp->movement_type = MT_NONE; |
| 959 | objp->render_type = RT_NONE; |
| 960 | objp->lm_object.used = 0; |
| 961 | return 1; |
| 962 | } |
| 963 | // Initialize a weapon |
| 964 | // Returns 1 if ok, 0 if error |
| 965 | int ObjInitWeapon(object *objp) { |
no test coverage detected